Function xsSetArrayBufferData

Copies bytes into the ArrayBuffer.

void xsSetArrayBufferData(T) (
  scope xsMachine* the,
  xsSlot theSlot,
  int offset,
  T[] buffer
);

void xsSetArrayBufferData (
  scope xs.bindings.xsMachineRecord* the,
  xs.bindings.xsSlotRecord theSlot,
  int offset,
  void* buffer,
  int size
);

Parameters

NameDescription
theA machine
theSlotThe ArrayBuffer slot
offsetThe starting byte offset to get the data