Construct a buffer representing a copy of the entire byte array.
Construct a buffer representing a copy of the array of bytes, delimited
by the indices from
inclusive and until
exclusive: [begin, end)
.
Construct a buffer representing a copy of the 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 copy of a a Buf's data as an array of bytes.
Extract a copy of the buffer's underlying array of bytes.
Safe copying constructors / extractors for Buf.ByteArray.