Bytesrw_crypto.BigbytesBigbytes operations.
type t = bigbytesThe type for bigbytes.
val create : int -> bigbytescreate n are n uninitialized bytes.
make n ~fill is bigbytes of length n initalized with byte fill.
init n init is a bigbytes of length n with element i initialized by init i.
val length : bigbytes -> intlength b is the length of b.
val of_string : string -> bigbytesof_string s is a bigbytes value with the contents of s.
val to_string : ?length:int -> bigbytes -> stringto_string b is a string with the first length bytes of b. length defaults to length b.
val of_bytes : bytes -> bigbytesof_bytes s is a bigbytes value with the contents of s.
val to_bytes : ?length:int -> bigbytes -> bytesto_bytes b is a bytes value with the first length bytes of b. length defaults to length b.
val pp : Stdlib.Format.formatter -> t -> unitpp formats bigbytes for inspection.