copyIn method

int copyIn(
  1. Uint8List bytes
)

Copies bytes into a fresh arena allocation and returns its offset.

Implementation

int copyIn(Uint8List bytes) {
  final p = alloc(bytes.isEmpty ? 1 : bytes.length);
  module.writeBytes(p, bytes);
  return p;
}