mirror of
https://github.com/esiur/esiur-js.git
synced 2025-05-06 04:22:58 +00:00
version
This commit is contained in:
parent
637614f073
commit
7e797ff207
@ -4853,17 +4853,18 @@ var TransmissionType = /*#__PURE__*/function () {
|
||||
var exp = (h & 0x38) >> 3;
|
||||
if (exp == 0) return new TransmissionTypeParseResults(1, new TransmissionType(h, cls, h & 0x7, 0, exp));
|
||||
var cl = 1 << exp - 1;
|
||||
if (ends - offset < cl) return new TransmissionTypeParseResults(ends - offset - cl, null);
|
||||
if (ends - offset < cl) return new TransmissionTypeParseResults(cl - (ends - offset), null);
|
||||
return new TransmissionTypeParseResults(1 + cl, new TransmissionType(h, cls, h & 0x7, offset, cl, exp));
|
||||
} else {
|
||||
var cll = h >> 3 & 0x7;
|
||||
if (ends - offset < cll) return new TransmissionTypeParseResults(ends - offset - cll, null);
|
||||
if (ends - offset < cll) return new TransmissionTypeParseResults(cll - (ends - offset), null);
|
||||
var _cl = 0;
|
||||
|
||||
for (var i = 0; i < cll; i++) {
|
||||
_cl = _cl << 8 | data[offset++];
|
||||
}
|
||||
|
||||
if (ends - offset < _cl) return new TransmissionTypeParseResults(_cl - (ends - offset), null);
|
||||
return new TransmissionTypeParseResults(1 + _cl + cll, new TransmissionType(h & 0xC7, cls, h & 0x7, offset, _cl));
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "esiur",
|
||||
"version": "2.0.5",
|
||||
"version": "2.0.6",
|
||||
"description": "Distributed Object Framework",
|
||||
"main": "esiur.js",
|
||||
"type": "module",
|
||||
|
Loading…
x
Reference in New Issue
Block a user