Class ByteBufferUtils

java.lang.Object
org.infinispan.server.resp.ByteBufferUtils

public final class ByteBufferUtils extends Object
Utility class with ByteBuffer Utils
Since:
14.0
  • Method Details

    • stringToResult

      public static io.netty.buffer.ByteBuf stringToResult(byte[] result, ByteBufPool alloc)
    • bytesToResult

      public static io.netty.buffer.ByteBuf bytesToResult(byte[] result, ByteBufPool alloc)
    • writeLong

      public static io.netty.buffer.ByteBuf writeLong(Long result, ByteBufPool alloc)
    • bytesToResultWrapped

      public static io.netty.buffer.ByteBuf bytesToResultWrapped(Collection<org.infinispan.multimap.impl.ScoredValue<byte[]>> results, ByteBufPool alloc)
    • bytesToResult

      public static io.netty.buffer.ByteBuf bytesToResult(Collection<byte[]> results, ByteBufPool alloc)
    • bytesToResult

      public static io.netty.buffer.ByteBuf bytesToResult(int resultBytesSize, Collection<byte[]> results, ByteBufPool alloc)
    • bytesToResultWrapped

      public static io.netty.buffer.ByteBuf bytesToResultWrapped(int resultBytesSize, Collection<org.infinispan.multimap.impl.ScoredValue<byte[]>> results, ByteBufPool alloc)
    • setIntChars

      public static int setIntChars(long i, int index, io.netty.buffer.ByteBuf buf)
    • stringSize

      public static int stringSize(long x)
    • writeInt

      public static void writeInt(io.netty.buffer.ByteBuf buf, long value)
    • stringToByteBufAscii

      public static io.netty.buffer.ByteBuf stringToByteBufAscii(CharSequence string, ByteBufPool alloc)
    • stringToByteBuf

      public static io.netty.buffer.ByteBuf stringToByteBuf(CharSequence string, ByteBufPool alloc)
    • stringToByteBufWithExtra

      public static io.netty.buffer.ByteBuf stringToByteBufWithExtra(CharSequence string, ByteBufPool alloc, int extraBytes)