toBytesBuffer method

BytesBuffer toBytesBuffer({
  1. int offset = 0,
  2. int? length,
  3. int? bufferLength,
  4. bool copyBuffer = false,
})

Instantiates a BytesBuffer from this Uint8List instance.

Implementation

BytesBuffer toBytesBuffer(
        {int offset = 0,
        int? length,
        int? bufferLength,
        bool copyBuffer = false}) =>
    BytesBuffer.from(this,
        offset: offset,
        length: length,
        bufferLength: bufferLength,
        copyBuffer: copyBuffer);