prepend static method

int prepend(
  1. Uint8List bytes,
  2. List<int> into
)

Implementation

static int prepend(Uint8List bytes, List<int> into) {
  for (int i = bytes.length - 1; i >= 0; i--) {
    into.insert(0, bytes[i]);
  }
  return bytes.length;
}