blank project

This commit is contained in:
root
2025-10-17 20:17:33 +00:00
commit 14b2d53e8e
9366 changed files with 1515019 additions and 0 deletions

38
node_modules/restructure/src/Buffer.js generated vendored Normal file
View File

@@ -0,0 +1,38 @@
import {Base} from './Base.js';
import {Number as NumberT} from './Number.js';
import * as utils from './utils.js';
export class BufferT extends Base {
constructor(length) {
super();
this.length = length;
}
decode(stream, parent) {
const length = utils.resolveLength(this.length, stream, parent);
return stream.readBuffer(length);
}
size(val, parent) {
if (!val) {
return utils.resolveLength(this.length, null, parent);
}
let len = val.length;
if (this.length instanceof NumberT) {
len += this.length.size();
}
return len;
}
encode(stream, buf, parent) {
if (this.length instanceof NumberT) {
this.length.encode(stream, buf.length);
}
return stream.writeBuffer(buf);
}
}
export {BufferT as Buffer};