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

Function asciiWrite

lib/internal/buffer.js:962–970  ·  view source on GitHub ↗
(buf, string, offset = 0, length = buf.byteLength - offset)

Source from the content-addressed store, hash-verified

960class FastBuffer extends Uint8Array {}
961
962function 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
972function latin1Write(buf, string, offset = 0, length = buf.byteLength - offset) {
973 if (offset < 0 || offset > buf.byteLength) {

Callers 2

buffer.jsFile · 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…