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

Function fxNewDataViewInstance

xs/sources/xsDataView.c:916–928  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

914}
915
916txSlot* fxNewDataViewInstance(txMachine* the)
917{
918 txSlot* instance;
919 txSlot* property;
920 instance = fxNewObjectInstance(the);
921 property = instance->next = fxNewSlot(the);
922 property->flag = XS_INTERNAL_FLAG;
923 property->kind = XS_DATA_VIEW_KIND;
924 property->value.dataView.offset = 0;
925 property->value.dataView.size = 0;
926 property = fxNextNullProperty(the, property, XS_NO_ID, XS_INTERNAL_FLAG);
927 return instance;
928}
929
930void fx_DataView(txMachine* the)
931{

Callers 1

fx_DataViewFunction · 0.85

Calls 3

fxNewObjectInstanceFunction · 0.85
fxNewSlotFunction · 0.85
fxNextNullPropertyFunction · 0.85

Tested by

no test coverage detected