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

Function writeU_Int16BE

lib/internal/buffer.js:836–843  ·  view source on GitHub ↗
(buf, value, offset, min, max)

Source from the content-addressed store, hash-verified

834}
835
836function writeU_Int16BE(buf, value, offset, min, max) {
837 value = +value;
838 checkInt(value, min, max, buf, offset, 1);
839
840 buf[offset++] = (value >>> 8);
841 buf[offset++] = value;
842 return offset;
843}
844
845function writeUInt16BE(value, offset = 0) {
846 return writeU_Int16BE(this, value, offset, 0, 0xffff);

Callers 4

writeUIntBEFunction · 0.85
writeUInt16BEFunction · 0.85
writeIntBEFunction · 0.85
writeInt16BEFunction · 0.85

Calls 1

checkIntFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…