copyCodecOutput function
Implementation
int copyCodecOutput(Uint8List bytes, Uint8List destination) {
if (bytes.length > destination.length) {
throw RangeError.range(
bytes.length,
0,
destination.length,
'output length',
);
}
destination.setRange(0, bytes.length, bytes);
return bytes.length;
}