module Lwt_bytes: Uwt_bytestypet =(char, Bigarray.int8_unsigned_elt, Bigarray.c_layout) Bigarray.Array1.t
Type of array of bytes.
val create : int -> tCreates a new byte array of the given size.
val length : t -> intReturns the length of the given byte array.
val get : t -> int -> charget buffer offset returns the byte at offset offset in
buffer.
val set : t -> int -> char -> unitget buffer offset value changes the value of the byte at
offset offset in buffer to value.
val unsafe_get : t -> int -> charSame as Uwt_bytes.get but without bound checking.
val unsafe_set : t -> int -> char -> unitSame as Uwt_bytes.set but without bound checking.
val of_bytes : Bytes.t -> tof_bytes buf returns a newly allocated byte array with the
same contents as buf.
val of_string : string -> tof_string buf returns a newly allocated byte array with the
same contents as buf.
val to_bytes : t -> Bytes.tto_bytes buf returns newly allocated bytes with the same
contents as buf.
val to_string : t -> stringto_string buf returns a newly allocated string with the same
contents as buf.
val blit : t -> int -> t -> int -> int -> unitblit buf1 ofs1 buf2 ofs2 len copy len bytes from buf1
starting at offset ofs1 to buf2 starting at offset ofs2.
val blit_from_bytes : Bytes.t -> int -> t -> int -> int -> unitSame as blit but the first buffer is a string instead of a byte array.
val blit_to_bytes : t -> int -> Bytes.t -> int -> int -> unitSame as blit but the second buffer is a string instead of a byte array.
val unsafe_blit : t -> int -> t -> int -> int -> unitSame as Uwt_bytes.blit but without bound checking.
val unsafe_blit_from_bytes : Bytes.t -> int -> t -> int -> int -> unitSame as blit_string_bytes but without bound checking.
val unsafe_blit_to_bytes : t -> int -> Bytes.t -> int -> int -> unitSame as blit_bytes_string but without bound checking.
val proxy : t -> int -> int -> tproxy buffer offset length creates a ``proxy''. The returned
byte array share the data of buffer but with different
bounds.
val extract : t -> int -> int -> textract buffer offset length creates a new byte array of
length length and copy the length bytes of buffer at
offset into it.
val copy : t -> tcopy buffer creates a copy of the given byte array.
val fill : t -> int -> int -> char -> unitfill buffer offset length value puts value in all length
bytes of buffer starting at offset offset.
val unsafe_fill : t -> int -> int -> char -> unitSame as Uwt_bytes.fill but without bound checking.