I/O-vectors for scatter/gather-operations
: 'buf | ; | (* | Buffer holding the I/O-vector | *) | |
: int | ; | (* | Position of I/O-vector in buffer | *) | |
: int | ; | (* | Length of I/O-vector in buffer | *) |
Representation of I/O-vectors. NOTE: DO NOT CHANGE THE MEMORY LAYOUT OF THIS TYPE!!! All C-functions in our bindings that handle I/O-vectors depend on it.
of_string ?pos ?len str
pos
and length len
in string str
.
String.length str - pos
of_bigstring ?pos ?len bstr
pos
and length len
in bigstring bstr
.
String.length str - pos