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