Module Qoic.Bigbytes

Bigarrays of bytes.

type t = ( int, Bigarray.int8_unsigned_elt, Bigarray.c_layout ) Bigarray.Array1.t

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.

val get_uint32_be : t -> int -> uint32

get b i is the big endian unsigned 32-bit integer at byte index i of b.

val set_uint32_be : t -> int -> uint32 -> unit

set b i v sets the big endian unsigned 32-bit integer at byte index i of b to v.