List<int> takeBytes( )

Returns the contents of this and clears this.

The list returned is a view of the the internal buffer, limited to the length.

Source

/**
 * Returns the contents of `this` and clears `this`.
 *
 * The list returned is a view of the the internal buffer, limited to the
 * [length].
 */
List<int> takeBytes();