fix(core): update

This commit is contained in:
2024-06-07 17:13:07 +02:00
parent fb2880c995
commit 14adec5ba3
3 changed files with 31 additions and 3 deletions

View File

@@ -306,4 +306,11 @@ export class SmartFile extends plugins.smartjson.Smartjson {
stream.push(null); // Push null to signify the end of the stream (EOF)
return stream;
}
/**
* Returns the size of the file in bytes
*/
public async getSize(): Promise<number> {
return this.contentBuffer.length;
}
}