pushUint8ListChecked method

void pushUint8ListChecked(
  1. Uint8List v,
  2. int len
)

Append bytes in v. Throws if len doesn't match v.length */

Implementation

void pushUint8ListChecked(Uint8List v, int len) {
  if (v.length != len) {
    throw 'Binary data has incorrect size';
  }
  pushArray(v);
}