mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
fix reading and writing lat lon
This commit is contained in:
parent
feb149ad35
commit
865ca127ac
3 changed files with 17 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue