MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / fxNewArrayBufferInstance

Function fxNewArrayBufferInstance

xs/sources/xsDataView.c:480–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478}
479
480txSlot* fxNewArrayBufferInstance(txMachine* the)
481{
482 txSlot* instance;
483 txSlot* property;
484 instance = fxNewObjectInstance(the);
485 property = instance->next = fxNewSlot(the);
486 property->flag = XS_INTERNAL_FLAG;
487 property->kind = XS_ARRAY_BUFFER_KIND;
488 property->value.arrayBuffer.address = C_NULL;
489 property->value.arrayBuffer.detachKey = C_NULL;
490 property = property->next = fxNewSlot(the);
491 property->flag = XS_INTERNAL_FLAG;
492 property->kind = XS_BUFFER_INFO_KIND;
493 property->value.bufferInfo.length = 0;
494 property->value.bufferInfo.maxLength = -1;
495 return instance;
496}
497
498void fx_ArrayBuffer(txMachine* the)
499{

Callers 2

fxArrayBufferFunction · 0.85
fx_ArrayBufferFunction · 0.85

Calls 2

fxNewObjectInstanceFunction · 0.85
fxNewSlotFunction · 0.85

Tested by

no test coverage detected