MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / byteDataByte

Function byteDataByte

test/cffi/project/Project.cpp:275–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273
274
275value byteDataByte(value byteData, value inIndex)
276{
277 CffiBytes bytes = getByteData(byteData);
278 if (bytes.data==0)
279 return alloc_null();
280
281 return alloc_int(bytes.data[ val_int(inIndex) ]);
282}
283DEFINE_PRIM(byteDataByte, 2);
284
285

Callers

nothing calls this directly

Calls 4

getByteDataFunction · 0.85
alloc_nullFunction · 0.50
alloc_intFunction · 0.50
val_intFunction · 0.50

Tested by

no test coverage detected