Bytes.from_bytes


Description:

public Bytes.from_bytes (Bytes bytes, size_t offset, size_t length)

Creates a Bytes which is a subsection of another Bytes.

The offset + length may not be longer than the size of this.

A reference to this will be held by the newly created Bytes until the byte data is no longer needed.

Parameters:

this

a Bytes

offset

offset which subsection starts at

length

length of subsection

Returns:

a new Bytes