GBytes which is a subsection of another
length may not be longer than the size of
A reference to
bytes will be held by the newly created
the byte data is no longer needed.
Since 2.56, if
offset is 0 and
length matches the size of
bytes will be returned with the reference count incremented by 1. If
is a slice of another
GBytes, then the resulting
GBytes will reference
GBytes instead of
bytes. This allows consumers to simplify the
GBytes when asynchronously writing to streams.
|The caller of the method takes ownership of the data, and is responsible for freeing it.|