toBytes method

Bytes toBytes()

Zero-copy view of the whole encoded document.

Implementation

Bytes toBytes() => Bytes.view(buffer, byteOffset, byteLength);