(buf, string, offset = 0, length = buf.byteLength - offset)
| 960 | class FastBuffer extends Uint8Array {} |
| 961 | |
| 962 | function asciiWrite(buf, string, offset = 0, length = buf.byteLength - offset) { |
| 963 | if (offset < 0 || offset > buf.byteLength) { |
| 964 | throw new ERR_BUFFER_OUT_OF_BOUNDS('offset'); |
| 965 | } |
| 966 | if (length < 0 || length > buf.byteLength - offset) { |
| 967 | throw new ERR_BUFFER_OUT_OF_BOUNDS('length'); |
| 968 | } |
| 969 | return asciiWriteStatic(buf, string, offset, length); |
| 970 | } |
| 971 | |
| 972 | function latin1Write(buf, string, offset = 0, length = buf.byteLength - offset) { |
| 973 | if (offset < 0 || offset > buf.byteLength) { |
no outgoing calls
no test coverage detected
searching dependent graphs…