refactor: improve Bedrock error handling and validation

This commit is contained in:
2025-02-07 08:48:04 +03:00
parent c71236f223
commit 0959403b1b
3 changed files with 75 additions and 44 deletions

View File

@ -27,7 +27,7 @@ const varint = {
buf.writeUInt8(byte | 0x80, written++);
}
return buf.slice(0, written);
return buf.subarray(0, written);
},
/**