- A record of type `BDIO_BIN_INT64LE` that contains the first 1000 numbers. This record has user info 1.
- A record of type `BDIO_BIN_F64LE` that contains a total of 2000 numbers: 1000 random numbers and then the same numbers with opposite sign. This record has user info 2. Note that writing data to a record can be done with more than one call to `BDIO_write!`.
The `MD5` sum of both records is stored in the same `BDIO` file thanks
to the calls to `BDIO_write_hash!`. These are written in special
`BDIO` records themselves, with user info 7.
```@repl
using BDIO
BDIO_set_user("alberto")
BDIO_set_host("laptop")
fb = BDIO_open("foo.bdio", "w", "Test file")
BDIO_start_record!(fb, BDIO_BIN_INT64LE, 1, true)
BDIO_write!(fb, collect(1:1000))
BDIO_write_hash!(fb)
BDIO_start_record!(fb, BDIO_BIN_F64LE, 2, true)
vec1 = randn(1000);
vec2 = similar(vec1);
vec2 .= .- vec1;
BDIO_write!(fb, vec1)
BDIO_write!(fb, vec2)
BDIO_write_hash!(fb)
BDIO_close!(fb)
```
In total the file has 4 records (2 data records, 2 checksum
records). We can see the contents using the [`lsbdio`