mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-11 18:29:52 +03:00
optimizations
This commit is contained in:
@@ -54,7 +54,7 @@ export class Unpackr {
|
||||
}
|
||||
Object.assign(this, options);
|
||||
}
|
||||
unpack(source, options?: any) {
|
||||
unpack(source, options?: { start?: number; end?: number; lazy?: boolean }) {
|
||||
if (src) {
|
||||
return saveState(() => {
|
||||
clearSource();
|
||||
@@ -184,7 +184,7 @@ export class Unpackr {
|
||||
function getPosition() {
|
||||
return position;
|
||||
}
|
||||
function checkedRead(options: any) {
|
||||
function checkedRead(options?: { lazy?: boolean }) {
|
||||
try {
|
||||
if (!currentUnpackr.trusted && !sequentialMode) {
|
||||
const sharedLength = currentStructures.sharedLength || 0;
|
||||
|
||||
Reference in New Issue
Block a user