mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
ui to test channels
This commit is contained in:
parent
209992d307
commit
78e990aeac
2 changed files with 26 additions and 0 deletions
|
|
@ -6,6 +6,12 @@ class BufferUtils {
|
|||
}).join('');
|
||||
}
|
||||
|
||||
static base64ToBytes(base64) {
|
||||
return Uint8Array.from(atob(base64), (c) => {
|
||||
return c.charCodeAt(0);
|
||||
});
|
||||
}
|
||||
|
||||
static areBuffersEqual(byteArray1, byteArray2) {
|
||||
|
||||
// ensure length is the same
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue