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

Function writeU_Int32BE

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

Source from the content-addressed store, hash-verified

804}
805
806function writeU_Int32BE(buf, value, offset, min, max) {
807 value = +value;
808 checkInt(value, min, max, buf, offset, 3);
809
810 buf[offset + 3] = value;
811 value = value >>> 8;
812 buf[offset + 2] = value;
813 value = value >>> 8;
814 buf[offset + 1] = value;
815 value = value >>> 8;
816 buf[offset] = value;
817 return offset + 4;
818}
819
820function writeUInt32BE(value, offset = 0) {
821 return writeU_Int32BE(this, value, offset, 0, 0xffffffff);

Callers 4

writeUIntBEFunction · 0.85
writeUInt32BEFunction · 0.85
writeIntBEFunction · 0.85
writeInt32BEFunction · 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…