Function xsGetArrayBufferData

Get the data of an ArrayBuffer.

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

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

Parameters

NameDescription
theSlotThe ArrayBuffer slot
offsetThe starting byte offset to get the data
sizeThe data size to copy in bytes