Module Buffer.UByte
val set : t -> int -> int -> unit
set t off value
will set thevalue
at offsetoff
in the buffer.
val get : t -> int -> int
get t off
will return the value at offsetoff
.
val length : t -> int
Return the number of elements in the buffer.
val sub : t -> int -> int -> t
sub t off len
will create a sub array starting at offsetoff
with lengthlen
. This operation does not copy any array values.
val create : int -> t
Creates a new buffer. The buffer is initialized with zeros.
val empty : t
The empty buffer. Can be used as a placeholder value. Has size 0.