Pixeldrift.Bigbytes
Bigarrays of bytes.
The type for bigarrays of bytes.
val create : len:int -> init:int -> t
create ~len ~init
is a bigarray of bytes of length len
filled with byte init
.
val length : t -> int
length b
is the length of b
.
val get : t -> int -> int
get b i
is the byte at index i
of b
.
val set : t -> int -> int -> unit
set b i v
sets the byte at index i
of b
to v
.
get b i
is the big endian unsigned 32-bit integer at byte index i
of b
.
set b i v
sets the big endian unsigned 32-bit integer at byte index i
of b
to v
.
val clear : t -> unit
clear b
zeroes b
.