Fix on Writer

This commit is contained in:
Eli-Class
2026-02-03 08:53:08 +00:00
parent 00635bdb67
commit 81c5dba641
2 changed files with 9 additions and 0 deletions

View File

@@ -161,6 +161,11 @@ export class IndexWriter {
return this.latestSequence;
}
getFlags(): number {
if (!this.headerBuf) throw new Error('Index file not opened');
return this.headerBuf.readUInt32LE(41);
}
writeHeader(): void {
if (!this.headerBuf || this.fd === null) return;