mirror of
https://github.com/meshcore-dev/meshcore.js.git
synced 2026-04-20 22:13:49 +00:00
refactor
This commit is contained in:
parent
78e990aeac
commit
e80f1d73e4
1 changed files with 1 additions and 3 deletions
|
|
@ -24,9 +24,7 @@ class BufferReader {
|
|||
}
|
||||
|
||||
readString() {
|
||||
const remainingBytesCount = this.buffer.length - this.pointer;
|
||||
const remainingBytes = this.readBytes(remainingBytesCount);
|
||||
return new TextDecoder().decode(remainingBytes);
|
||||
return new TextDecoder().decode(this.readRemainingBytes());
|
||||
}
|
||||
|
||||
readCString(maxLength) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue