Package pl.tkowalcz.tjahzi.protobuf
Class Protobuf
java.lang.Object
pl.tkowalcz.tjahzi.protobuf.Protobuf
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetFixed32Varint(int value) static intintFromBytesLE(byte byte1, byte byte2, byte byte3, byte byte4) static voidwriteSize(io.netty.buffer.ByteBuf target, int messageStartIndex) static voidwriteUnsignedVarint(long value, io.netty.buffer.ByteBuf target)
-
Field Details
-
LENGTH_DELIMITED_TYPE
public static final int LENGTH_DELIMITED_TYPE- See Also:
-
VARINT_TYPE
public static final int VARINT_TYPE- See Also:
-
-
Constructor Details
-
Protobuf
public Protobuf()
-
-
Method Details
-
writeSize
public static void writeSize(io.netty.buffer.ByteBuf target, int messageStartIndex) -
getFixed32Varint
public static int getFixed32Varint(int value) -
writeUnsignedVarint
public static void writeUnsignedVarint(long value, io.netty.buffer.ByteBuf target) -
intFromBytesLE
public static int intFromBytesLE(byte byte1, byte byte2, byte byte3, byte byte4)
-