Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /var/www/html/sites/node_modules/@aws-sdk/eventstream-marshaller/dist-es/ drwxr-xr-x | |
| Viewing file: Select action/file-type: import { toHex } from "@aws-sdk/util-hex-encoding";
var Int64 = (function () {
function Int64(bytes) {
this.bytes = bytes;
if (bytes.byteLength !== 8) {
throw new Error("Int64 buffers must be exactly 8 bytes");
}
}
Int64.fromNumber = function (number) {
if (number > 9223372036854775807 || number < -9223372036854775808) {
throw new Error("".concat(number, " is too large (or, if negative, too small) to represent as an Int64"));
}
var bytes = new Uint8Array(8);
for (var i = 7, remaining = Math.abs(Math.round(number)); i > -1 && remaining > 0; i--, remaining /= 256) {
bytes[i] = remaining;
}
if (number < 0) {
negate(bytes);
}
return new Int64(bytes);
};
Int64.prototype.valueOf = function () {
var bytes = this.bytes.slice(0);
var negative = bytes[0] & 128;
if (negative) {
negate(bytes);
}
return parseInt(toHex(bytes), 16) * (negative ? -1 : 1);
};
Int64.prototype.toString = function () {
return String(this.valueOf());
};
return Int64;
}());
export { Int64 };
function negate(bytes) {
for (var i = 0; i < 8; i++) {
bytes[i] ^= 0xff;
}
for (var i = 7; i > -1; i--) {
bytes[i]++;
if (bytes[i] !== 0)
break;
}
}
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0048 ]-- |