Construct a buffer representing the provided array of bytes.
Construct a buffer representing the provided array of bytes, delimited
by the indices from
inclusive and until
exclusive: [begin, end)
.
Construct a buffer representing the provided array of bytes, delimited
by the indices from
inclusive and until
exclusive: [begin, end)
.
Out of bounds indices are truncated. Negative indices are not accepted.
Get a reference to a Buf's data as an array of bytes.
Get a reference to a Buf's data as an array of bytes.
A copy may be performed if necessary.
Extract the buffer's underlying offsets and array of bytes.
Owned non-copying constructors/extractors for Buf.ByteArray.