Class Protobuf


  • public class Protobuf
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Protobuf()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int getFixed32Varint​(int value)  
      static int intFromBytes​(byte byte1, byte byte2, byte byte3, byte byte4)  
      static void writeSize​(io.netty.buffer.ByteBuf target, int messageStartIndex)  
      static void writeUnsignedVarint​(long value, io.netty.buffer.ByteBuf target)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Protobuf

        public Protobuf()
    • Method Detail

      • 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)
      • intFromBytes

        public static int intFromBytes​(byte byte1,
                                       byte byte2,
                                       byte byte3,
                                       byte byte4)