Slice_bstrval empty : tempty is an empty slice.
val length : t -> intlength slice is the number of bytes in slice.
val get : t -> int -> charget slice i is the byte of slice' at index i.
val get_int8 : t -> int -> intget_int8 slice i is slice's signed 8-bit integer starting at byte index i.
val get_uint8 : t -> int -> intget_uint8 slice i is slice's unsigned 8-bit integer starting at byte index i.
val get_uint16_ne : t -> int -> intget_int16_ne slice i is slice's native-endian unsigned 16-bit integer starting at byte index i.
val get_uint16_le : t -> int -> intget_int16_le slice i is slice's little-endian unsigned 16-bit integer starting at byte index i.
val get_uint16_be : t -> int -> intget_int16_be slice i is slice's big-endian unsigned 16-bit integer starting at byte index i.
val get_int16_ne : t -> int -> intget_int16_ne slice i is slice's native-endian signed 16-bit integer starting at byte index i.
val get_int16_le : t -> int -> intget_int16_le slice i is slice's little-endian signed 16-bit integer starting at byte index i.
val get_int16_be : t -> int -> intget_int16_be slice i is slice's big-endian signed 16-bit integer starting at byte index i.
val get_int32_ne : t -> int -> int32get_int32_ne slice i is slice's native-endian 32-bit integer starting at byte index i.
val get_int32_le : t -> int -> int32get_int32_le slice i is slice's little-endian 32-bit integer starting at byte index i.
val get_int32_be : t -> int -> int32get_int32_be slice i is slice's big-endian 32-bit integer starting at byte index i.
val get_int64_ne : t -> int -> int64get_int64_ne slice i is slice's native-endian 64-bit integer starting at byte index i.
val get_int64_le : t -> int -> int64get_int64_le slice i is slice's little-endian 64-bit integer starting at byte index i.
val get_int64_be : t -> int -> int64get_int64_be slice i is slice's big-endian 64-bit integer starting at byte index i.
val set : t -> int -> char -> unitset t i chr modifies t in place, replacing the byte at index i with chr.
val set_int8 : t -> int -> int -> unitset_int8 t i v sets t's signed 8-bit integer starting at byte index i to v.
val set_uint8 : t -> int -> int -> unitset_uint8 t i v sets t's unsigned 8-bit integer starting at byte index i to v.
val set_uint16_ne : t -> int -> int -> unitset_uint16_ne t i v sets t's native-endian unsigned 16-bit integer starting at byte index i to v.
val set_uint16_le : t -> int -> int -> unitset_uint16_le t i v sets t's little-endian unsigned 16-bit integer starting at byte index i to v.
val set_uint16_be : t -> int -> int -> unitset_uint16_le t i v sets t's big-endian unsigned 16-bit integer starting at byte index i to v.
val set_int16_ne : t -> int -> int -> unitset_uint16_ne t i v sets t's native-endian signed 16-bit integer starting at byte index i to v.
val set_int16_le : t -> int -> int -> unitset_uint16_le t i v sets t's little-endian signed 16-bit integer starting at byte index i to v.
val set_int16_be : t -> int -> int -> unitset_uint16_le t i v sets t's big-endian signed 16-bit integer starting at byte index i to v.
val set_int32_ne : t -> int -> int32 -> unitset_int32_ne t i v sets t's native-endian 32-bit integer starting at byte index i to v.
val set_int32_le : t -> int -> int32 -> unitset_int32_ne t i v sets t's little-endian 32-bit integer starting at byte index i to v.
val set_int32_be : t -> int -> int32 -> unitset_int32_ne t i v sets t's big-endian 32-bit integer starting at byte index i to v.
val set_int64_ne : t -> int -> int64 -> unitset_int32_ne t i v sets t's native-endian 64-bit integer starting at byte index i to v.
val set_int64_le : t -> int -> int64 -> unitset_int32_ne t i v sets t's little-endian 64-bit integer starting at byte index i to v.
val set_int64_be : t -> int -> int64 -> unitset_int32_ne t i v sets t's big-endian 64-bit integer starting at byte index i to v.
val blit_from_bytes : bytes -> src_off:int -> t -> ?dst_off:int -> int -> unitblit_from_bytes src ~src_off dst ~dst_off ~len copies len bytes from byte sequence src, starting at index src_off, to slice dst, starting at index dst_off.
val blit_to_bytes :
t ->
?src_off:int ->
bytes ->
dst_off:int ->
len:int ->
unitJust like blit_from_bytes, but the source is a slice and the destination is a bytes sequence.
val fill : t -> ?off:int -> ?len:int -> char -> unitfill t off len chr modifies t in place, replacing len characters with chr, starting at off.
sub slice ~off ~len does not allocate a new bigstring, but instead returns a new view into t.buf starting at off, and with length len.
Note that this does not allocate a new buffer, but instead shares the buffer of t.buf with the newly-returned slice.
shift slice n is sub slice n (length slice - n) (see sub for more details).
val sub_string : t -> off:int -> len:int -> stringsub_string slice ~off ~len returns a string of length len containing the bytes of slice starting at off.
val to_string : t -> stringto_string slice is equivalent to sub_string slice ~off:0 ~len:(length slice).
val is_empty : t -> boolis_empty bstr is length bstr = 0.
val of_string : string -> tof_string str returns a new t that contains the contents of the given string str.