pushArray method

void pushArray(
  1. List<int> v
)

Append bytes */

Implementation

void pushArray(List<int> v) {
  // reserve(v.length);
  // var t = Uint8List.view(array.buffer,0,array.length + v.length);
  // t.replaceRange(array.length, array.length + v.length - 1, v);
  // array = t;
  var t = array!.toList();
  t.addAll(v);
  array = Uint8List.fromList(t);
  length += v.length;
}