package data-encoding
Module Binary.SlicerSource
A slice is a part of a binary representation of some data. The concatenation of multiple slice represents the whole data.
None if offset and length do not describe a valid substring.
Source
val slice :
_ Encoding.t ->
slicer_state ->
(slice list, Data_encoding__.Binary_error_types.read_error) resultslice e b offset length slices the data represented by the length bytes in b starting at index offset.
If e does not correctly describe the given bytes (i.e., if read would fail on equivalent parameters) then it returns Error.
slice_string slices the whole content of the buffer.