(index)
| 412 | } |
| 413 | |
| 414 | function 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 | |
| 432 | class DefaultSerializer extends Serializer { |
| 433 | constructor() { |
no outgoing calls
no test coverage detected
searching dependent graphs…