appendBytes method

void appendBytes(
  1. List<int> l
)

Appends the given data.

See NSMutableData appendBytes:length:

Implementation

void appendBytes(List<int> l) {
  final f = calloc<Uint8>(l.length);
  try {
    f.asTypedList(l.length).setAll(0, l);

    _mutableData.appendBytes_length_(f.cast(), l.length);
  } finally {
    calloc.free(f);
  }
}