MCPcopy
hub / github.com/mongodb/node-mongodb-native / writeInt32

Function writeInt32

test/tools/mongodb-mock/src/request.js:266–272  ·  view source on GitHub ↗
(buffer, index, value)

Source from the content-addressed store, hash-verified

264};
265
266const writeInt32 = function (buffer, index, value) {
267 buffer[index] = value & 0xff;
268 buffer[index + 1] = (value >> 8) & 0xff;
269 buffer[index + 2] = (value >> 16) & 0xff;
270 buffer[index + 3] = (value >> 24) & 0xff;
271 return;
272};
273
274const writeInt64 = function (buffer, index, value) {
275 let lowBits = value.getLowBits();

Callers 1

request.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected