MCPcopy
hub / github.com/pixijs/pixijs / _embind_repr

Function _embind_repr

transcoders/basis/basis_transcoder.js:881–888  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

879 return rv;
880 }, toWireType(destructors, value) { return __emval_register(value); }, argPackAdvance: 8, readValueFromPointer: simpleReadValueFromPointer, destructorFunction: null });
881 } function _embind_repr(v)
882 {
883 if (v === null) { return 'null'; } const t = typeof v;
884
885 if (t === 'object' || t === 'array' || t === 'function') { return v.toString(); }
886
887 return `${v}`;
888 } function floatReadValueFromPointer(name, shift) { switch (shift) { case 2:return function (pointer) { return this.fromWireType(HEAPF32[pointer >> 2]); }; case 3:return function (pointer) { return this.fromWireType(HEAPF64[pointer >> 3]); }; default:throw new TypeError(`Unknown float type: ${name}`); } } function __embind_register_float(rawType, name, size)
889 {
890 const shift = getShiftFromSize(size);
891

Callers 4

genericPointerToWireTypeFunction · 0.70
toWireTypeFunction · 0.70

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected