fix reading and writing lat lon

This commit is contained in:
liamcottle 2025-02-11 22:51:18 +13:00
parent feb149ad35
commit 865ca127ac
3 changed files with 17 additions and 4 deletions

View file

@ -48,6 +48,12 @@ class BufferReader {
return view.getUint32(0, true);
}
readInt32LE() {
const bytes = this.readBytes(4);
const view = new DataView(bytes.buffer);
return view.getInt32(0, true);
}
}
export default BufferReader;