INNER CODE UNIT · JavaScript
unpackUint32
CloudI/CloudI · src/api/javascript/Erlang.js:114
var unpackUint32 = function unpackUint32 (i, buffer) { // big endian
return (buffer[i] << 24) |
(buffer[i + 1] << 16) |
(buffer[i + 2] << 8) |
buffer[i + 3];
};
// Exception objects listed alphabetically
var InputException = function InputException (message) {
var error = new Error(message);
error.name = 'InputException';
this.message = error.message;
if (error.stack) {
this.stack = error.stack;
}
}
InputException.prototype = Object.create(Error.prototype, {