Procs
func readString(b: Buffer; maxLength = 32767): string {. ...raises: [MnEndOfBufferError, ValueError, MnPacketParsingError], tags: [], forbids: [].}
- Reads a string from a buffer Source Edit
func readVar[R: int32 | int64](b: Buffer): R {. ...raises: [MnEndOfBufferError, ValueError, MnPacketParsingError].}
- Reads a VarInt or a VarLong from a buffer Source Edit
func writeString(b: Buffer; s: string) {....raises: [ValueError], tags: [], forbids: [].}
- Writes a string to a buffer Source Edit
Templates
template readIdentifier(b: Buffer): Identifier
- Reads an Identifier from a buffer Source Edit
template readPosition(b: Buffer; format = XZY): Position
- Reads a Position from a buffer using the specified encoding format Source Edit
template writeIdentifier(b: Buffer; i: Identifier)
- Writes an identifier to a buffer Source Edit
template writePosition(b: Buffer; p: Position; format = XZY)
- Writes a Position to a buffer using the specified encoding format Source Edit