writeBytes method

void writeBytes(
  1. int ptr,
  2. Uint8List bytes
)

Copies bytes into the module heap at ptr in one bulk write.

Implementation

void writeBytes(int ptr, Uint8List bytes) {
  if (bytes.isEmpty) return;
  module.heapU8.callMethod<JSAny?>('set'.toJS, bytes.toJS, ptr.toJS);
}