mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
parse extra packet types
This commit is contained in:
parent
1d88787c92
commit
26888c8fcf
4 changed files with 81 additions and 6 deletions
|
|
@ -1,5 +1,11 @@
|
|||
class BufferUtils {
|
||||
|
||||
static bytesToHex(uint8Array) {
|
||||
return Array.from(uint8Array).map(byte => {
|
||||
return byte.toString(16).padStart(2, '0');
|
||||
}).join('');
|
||||
}
|
||||
|
||||
static areBuffersEqual(byteArray1, byteArray2) {
|
||||
|
||||
// ensure length is the same
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue