Class ExtendedByteBuf

  • public class ExtendedByteBuf
    extends java.lang.Object
    Static helper class that provides methods to be used with a ByteBuf that are useful for Infinispan.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static io.netty.buffer.ByteBuf buffer​(int capacity)  
      static io.netty.buffer.ByteBuf dynamicBuffer()  
      static byte[] readRangedBytes​(io.netty.buffer.ByteBuf bf)  
      static byte[] readRangedBytes​(io.netty.buffer.ByteBuf bf, int length)  
      static java.lang.String readString​(io.netty.buffer.ByteBuf bf)
      Reads length of String and then returns an UTF-8 formatted String of such length.
      static int readUnsignedInt​(io.netty.buffer.ByteBuf bf)  
      static long readUnsignedLong​(io.netty.buffer.ByteBuf bf)  
      static int readUnsignedShort​(io.netty.buffer.ByteBuf bf)  
      static io.netty.buffer.ByteBuf wrappedBuffer​(byte[]... arrays)  
      static void writeRangedBytes​(byte[] src, io.netty.buffer.ByteBuf bf)  
      static void writeString​(java.lang.String msg, io.netty.buffer.ByteBuf bf)  
      static void writeUnsignedInt​(int i, io.netty.buffer.ByteBuf bf)  
      static void writeUnsignedLong​(long l, io.netty.buffer.ByteBuf bf)  
      static void writeUnsignedShort​(int i, io.netty.buffer.ByteBuf bf)  
      • Methods inherited from class java.lang.Object

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

      • wrappedBuffer

        public static io.netty.buffer.ByteBuf wrappedBuffer​(byte[]... arrays)
      • buffer

        public static io.netty.buffer.ByteBuf buffer​(int capacity)
      • dynamicBuffer

        public static io.netty.buffer.ByteBuf dynamicBuffer()
      • readUnsignedShort

        public static int readUnsignedShort​(io.netty.buffer.ByteBuf bf)
      • readUnsignedInt

        public static int readUnsignedInt​(io.netty.buffer.ByteBuf bf)
      • readUnsignedLong

        public static long readUnsignedLong​(io.netty.buffer.ByteBuf bf)
      • readRangedBytes

        public static byte[] readRangedBytes​(io.netty.buffer.ByteBuf bf)
      • readRangedBytes

        public static byte[] readRangedBytes​(io.netty.buffer.ByteBuf bf,
                                             int length)
      • readString

        public static java.lang.String readString​(io.netty.buffer.ByteBuf bf)
        Reads length of String and then returns an UTF-8 formatted String of such length. If the length is 0, an empty String is returned.
      • writeUnsignedShort

        public static void writeUnsignedShort​(int i,
                                              io.netty.buffer.ByteBuf bf)
      • writeUnsignedInt

        public static void writeUnsignedInt​(int i,
                                            io.netty.buffer.ByteBuf bf)
      • writeUnsignedLong

        public static void writeUnsignedLong​(long l,
                                             io.netty.buffer.ByteBuf bf)
      • writeRangedBytes

        public static void writeRangedBytes​(byte[] src,
                                            io.netty.buffer.ByteBuf bf)
      • writeString

        public static void writeString​(java.lang.String msg,
                                       io.netty.buffer.ByteBuf bf)