Skip to content

Releases: GolemOrg/NettyHelpers

NettyHelpers - v0.1.0

13 Mar 02:16

Choose a tag to compare

Features

Variable-length encoding

As variable-length encoding is used in the Bedrock protocol, it only makes sense to implement it here. Four new network types have been defined for this feature:

  • VarInt
  • VarLong
  • UVarInt
  • UVarLong

While these types can be used to encode/decode, there are new extension methods designed to read/write primitives only using Netty's ByteBuf. These new extension methods are:

  • ByteBuf.readVarInt(): Int
  • ByteBuf.writeVarInt(value: Int): ByteBuf
  • ByteBuf.readVarLong(): VarLong
  • ByteBuf.writeVarLong(value: Long): ByteBuf
  • ByteBuf.readUVarInt(): UInt
  • ByteBuf.writeUVarInt(value: UInt): ByteBuf
  • ByteBuf.readUVarLong(): ULong
  • ByteBuf.writeUVarLong(value: ULong): ByteBuf

Any issues with the encoding/decoding of these types can and should be reported here.

NettyHelpers - v0.0.2

09 Mar 22:42

Choose a tag to compare

This is the first release of the NettyHelpers library. Any issues or suggestions with the library can be made here!