* `BDIO_BIN_INT32BE`: 32-bit integer in Big Endian format
* `BDIO_BIN_INT32LE`: 32-bit integer in Little Endian format
* `BDIO_BIN_INT64BE`: 64-bit integer in Big Endian format
* `BDIO_BIN_INT64LE`: 64-bit integer in Little Endian format
* `BDIO_BIN_F32BE`: 32-bit float in Big Endian format
* `BDIO_BIN_F32LE`: 32-bit float in Little Endian format
* `BDIO_BIN_F64BE`: 64-bit float in Big Endian format
* `BDIO_BIN_F64LE`: 64-bit float in Little Endian format
* `BDIO_ASC_GENERIC`: ASCII text file
* `BDIO_ASC_XML`: Plain XML data
- `iuinfo`: Integer in the range 0-15. A user specified label to help indentifying the record
- `long` (optional): If true create a long record. To store more than 1048575 bytes of data (``\\approx 1\\, {\\rm MB}``), a long record is required. Default value of `false`.
function BDIO_write!(fb::BDIOstream,data,hash::Bool=true)
if(fb.imode==BDIO_R_MODE)
error("Attemp to write in READ mode")
...
...
@@ -198,8 +212,10 @@ end
"""
Write the `MD5` checksum of the actual record as a new record.
BDIO_write_hash!(fb::BDIOstream)
## Arguments
- `fb`: A BDIOstream type. It must be associated with a file in either `w` or `a` mode.
- `fb`: A `BDIOstream` type. It must be associated with a file in either `w` or `a` mode.
## Examples
```julia-repl
...
...
@@ -227,9 +243,11 @@ end
"""
Move the read position backward/forward `icnt` records
BDIO_seek!(fb::BDIOstream, icnt::Int = 1)
## Arguments
- `fb`: A BDIOstream type. It must be associated with a file.
- `icnt` (optional): number of records to move forward (if `icnt>0`) or backwards (`icnt<0`). The default value is `+1`.
- `icnt` (optional): number of records to move forward (if `icnt>0`) or backwards (`icnt<0`). If `icnt=0` move to the first record. The default value is `+1`.