(s)
| 21625 | ) |
| 21626 | } |
| 21627 | function checked(s) { |
| 21628 | if (s >= w) |
| 21629 | throw new RangeError( |
| 21630 | 'Attempt to allocate Buffer larger than maximum size: 0x' + |
| 21631 | w.toString(16) + |
| 21632 | ' bytes' |
| 21633 | ) |
| 21634 | return 0 | s |
| 21635 | } |
| 21636 | function byteLength(s, o) { |
| 21637 | if (Buffer.isBuffer(s)) return s.length |
| 21638 | if (ArrayBuffer.isView(s) || isInstance(s, ArrayBuffer)) return s.byteLength |
no test coverage detected