(buf, string, offset = 0, length = buf.byteLength - offset)
| 970 | } |
| 971 | |
| 972 | function latin1Write(buf, string, offset = 0, length = buf.byteLength - offset) { |
| 973 | if (offset < 0 || offset > buf.byteLength) { |
| 974 | throw new ERR_BUFFER_OUT_OF_BOUNDS('offset'); |
| 975 | } |
| 976 | if (length < 0 || length > buf.byteLength - offset) { |
| 977 | throw new ERR_BUFFER_OUT_OF_BOUNDS('length'); |
| 978 | } |
| 979 | return latin1WriteStatic(buf, string, offset, length); |
| 980 | } |
| 981 | |
| 982 | function utf8Write(buf, string, offset = 0, length = buf.byteLength - offset) { |
| 983 | if (offset < 0 || offset > buf.byteLength) { |
no outgoing calls
no test coverage detected
searching dependent graphs…