toBytes method

Uint8List toBytes(
  1. {dynamic copy = true}
)

Implementation

Uint8List toBytes({copy = true}) {
  final bytes = _buffer.buffer.asUint8List(0, cursor);
  if (copy) {
    return bytes.sublist(0);
  } else {
    return bytes;
  }
}