mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
show routing path to contact
This commit is contained in:
parent
46b18d00ae
commit
6ffd7ef270
3 changed files with 13 additions and 2 deletions
|
|
@ -36,6 +36,12 @@ class BufferReader {
|
|||
}
|
||||
}
|
||||
|
||||
readInt8() {
|
||||
const bytes = this.readBytes(1);
|
||||
const view = new DataView(bytes.buffer);
|
||||
return view.getInt8(0);
|
||||
}
|
||||
|
||||
readUInt16LE() {
|
||||
const bytes = this.readBytes(2);
|
||||
const view = new DataView(bytes.buffer);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue