package iostream
Module Iostream.SliceSource
Byte slice or buffer.
Source
type t = Iostream_types.Slice.t = {bytes : bytes;(*Bytes
*)mutable off : int;(*Offset in bytes
*)mutable len : int;(*Length of the slice. Empty slice has
*)len=0
}A slice of bytes. The valid bytes in the slice are bytes[off], bytes[off+1], …, bytes[off+len-1] (i.e len bytes starting at offset off).
Consume the first n bytes from the slice, making it n bytes shorter. This modifies the slice in place.