Function xsToArrayBuffer
Returns a pointer to the ArrayBuffer data.
void* xsToArrayBuffer
(
scope xs .bindings .xsMachineRecord* the,
xs .bindings .xsSlotRecord theSlot
);
For speed, the xsToArrayBuffer
macro returns the value contained in the slot itself, a pointer to the buffer in the memory managed by XS.
Since the XS runtime can compact memory containing string values, the result of the xsToArrayBuffer
macro cannot be used across or in other macros of XS in C.
Parameters
Name | Description |
---|---|
the | A machine |
theSlot | The ArrayBuffer slot |