INNER CODE UNIT · JavaScript
packUint32big
CloudI/CloudI · src/api/javascript/CloudI.js:77
var packUint32big = function packUint32big (value) {
return new bufferFrom([(value >>> 24) & 0xff,
(value >>> 16) & 0xff,
(value >>> 8) & 0xff,
value & 0xff]);
};
var unpackInt32 = function unpackInt32 (i, data) {
var value = unpackUint32(i, data);
if ((0x80000000 & value) != 0) {
value = -2147483648 + (value & 0x7fffffff);
}
return value;
};
if (Erlang.nodejs_version_after('10.0.0',true)) {
var originalEmitWarning = process.emitWarning;
process.emitWarning = function(warning, type, code, ctor) {
if (code === 'DEP0097') {
// Ignore the stderr output of the runtime deprecation: