feat: bkon read

This commit is contained in:
TrèsAbhi committed 2024-02-04 11:06:26 -06:00
1 parent 559fb30da9
commit 43b6453fcb
5 files changed
+318 -3

No files matched your search

+4 -1
View File
@@ -60,9 +60,12 @@ export class BufferStream {
uint64() {
return this.buffer.readBigUInt64LE(this.increment(8));
}
float() {
float32() {
return this.buffer.readFloatLE(this.increment(4));
}
float64() {
return this.buffer.readDoubleLE(this.increment(8));
}
boolean() {
return this.buffer.readUInt8(this.increment(1)) === 1;