copyCodecOutput function

int copyCodecOutput(
  1. Uint8List bytes,
  2. Uint8List destination
)

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;
}