First upload version 0.0.1
This commit is contained in:
18
node_modules/node-llama-cpp/dist/gguf/utils/GgufReadOffset.js
generated
vendored
Normal file
18
node_modules/node-llama-cpp/dist/gguf/utils/GgufReadOffset.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
export class GgufReadOffset {
|
||||
offset;
|
||||
constructor(offset) {
|
||||
if (offset instanceof GgufReadOffset)
|
||||
this.offset = offset.offset;
|
||||
else
|
||||
this.offset = offset;
|
||||
}
|
||||
moveBy(amount) {
|
||||
this.offset += amount;
|
||||
}
|
||||
static resolveReadOffset(offset) {
|
||||
if (offset instanceof GgufReadOffset)
|
||||
return offset;
|
||||
return new GgufReadOffset(offset);
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=GgufReadOffset.js.map
|
||||
Reference in New Issue
Block a user