Function xsSetArrayBufferLength

Set the length of an ArrayBuffer.

void xsSetArrayBufferLength (
  scope xs.bindings.xsMachineRecord* the,
  xs.bindings.xsSlotRecord theSlot,
  int length
);

Parameters

NameDescription
theA machine
theSlotThe ArrayBuffer slot
lengthThe size of the ArrayBuffer data in bytes. If the size of the buffer is increased, the new data is initialized to 0.