UNPKG

bedrock-api

Version:

A Node.js library to retrieve information about a Minecraft Bedrock Edition server using its IP address and port.

12 lines (11 loc) 243 B
function readString(bb) { const start = bb.offset; let b = bb.readUint8(); while(b !== 0x0) { b = bb.readUint8(); } return bb.toString('utf8', start, bb.offset - 1); } module.exports = { readString }