CCByte_sliceA simple byte slice.
val show : t -> stringSimple printer (summary, doesn't show the content)
val pp : Stdlib.Format.formatter -> t -> unitSimple printer (summary, doesn't show the content)
val create : ?off:int -> ?len:int -> bytes -> tcreate bs creates a slice of bs.
val unsafe_of_string : ?off:int -> ?len:int -> string -> tunsafe_of_string s makes a slice from a string. This is unsafe because mutating the bytes is forbidden (just like with Bytes.unsafe_of_string
val len : t -> intAccess the length
val get : t -> int -> charget sl i gets the i-th byte of the slice. Same as sl.bs.[sl.off + i].
val set : t -> int -> char -> unitset sl i c sets the i-th byte to c.
val consume : t -> int -> unitconsume sl n moves the offset forward by n bytes, and reduces len by n bytes.
val contents : t -> stringA copy of the contents of the slice. Allocates.