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/lib-storage/dist-es/chunks/ drwxr-xr-x | |
| Viewing file: Select action/file-type: import { __asyncGenerator, __await, __generator } from "tslib";
export function getChunkBuffer(data, partSize) {
return __asyncGenerator(this, arguments, function getChunkBuffer_1() {
var partNumber, startByte, endByte;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
partNumber = 1;
startByte = 0;
endByte = partSize;
_a.label = 1;
case 1:
if (!(endByte < data.byteLength)) return [3, 4];
return [4, __await({
partNumber: partNumber,
data: data.slice(startByte, endByte),
})];
case 2: return [4, _a.sent()];
case 3:
_a.sent();
partNumber += 1;
startByte = endByte;
endByte = startByte + partSize;
return [3, 1];
case 4: return [4, __await({
partNumber: partNumber,
data: data.slice(startByte),
lastPart: true,
})];
case 5: return [4, _a.sent()];
case 6:
_a.sent();
return [2];
}
});
});
}
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0057 ]-- |