MCPcopy Index your code
hub / github.com/nodejs/node / arrayBufferViewIndexToType

Function arrayBufferViewIndexToType

lib/v8.js:414–430  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

412}
413
414function arrayBufferViewIndexToType(index) {
415 if (index === 0) return Int8Array;
416 if (index === 1) return Uint8Array;
417 if (index === 2) return Uint8ClampedArray;
418 if (index === 3) return Int16Array;
419 if (index === 4) return Uint16Array;
420 if (index === 5) return Int32Array;
421 if (index === 6) return Uint32Array;
422 if (index === 7) return Float32Array;
423 if (index === 8) return Float64Array;
424 if (index === 9) return DataView;
425 if (index === 10) return FastBuffer;
426 if (index === 11) return BigInt64Array;
427 if (index === 12) return BigUint64Array;
428 if (index === 13) return Float16Array;
429 return undefined;
430}
431
432class DefaultSerializer extends Serializer {
433 constructor() {

Callers 1

_readHostObjectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…