Package org.infinispan.server.resp
Class ByteBufferUtils
java.lang.Object
org.infinispan.server.resp.ByteBufferUtils
Utility class with ByteBuffer Utils
- Since:
- 14.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.netty.buffer.ByteBufbytesToResult(byte[] result, ByteBufPool alloc) static io.netty.buffer.ByteBufbytesToResult(int resultBytesSize, Collection<byte[]> results, ByteBufPool alloc) static io.netty.buffer.ByteBufbytesToResult(Collection<byte[]> results, ByteBufPool alloc) static io.netty.buffer.ByteBufbytesToResultWrapped(int resultBytesSize, Collection<org.infinispan.multimap.impl.ScoredValue<byte[]>> results, ByteBufPool alloc) static io.netty.buffer.ByteBufbytesToResultWrapped(Collection<org.infinispan.multimap.impl.ScoredValue<byte[]>> results, ByteBufPool alloc) static intsetIntChars(long i, int index, io.netty.buffer.ByteBuf buf) static intstringSize(long x) static io.netty.buffer.ByteBufstringToByteBuf(CharSequence string, ByteBufPool alloc) static io.netty.buffer.ByteBufstringToByteBufAscii(CharSequence string, ByteBufPool alloc) static io.netty.buffer.ByteBufstringToByteBufWithExtra(CharSequence string, ByteBufPool alloc, int extraBytes) static io.netty.buffer.ByteBufstringToResult(byte[] result, ByteBufPool alloc) static voidwriteInt(io.netty.buffer.ByteBuf buf, long value) static io.netty.buffer.ByteBufwriteLong(Long result, ByteBufPool alloc)
-
Method Details
-
stringToResult
-
bytesToResult
-
writeLong
-
bytesToResultWrapped
public static io.netty.buffer.ByteBuf bytesToResultWrapped(Collection<org.infinispan.multimap.impl.ScoredValue<byte[]>> results, ByteBufPool alloc) -
bytesToResult
-
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
-
stringToByteBuf
-
stringToByteBufWithExtra
public static io.netty.buffer.ByteBuf stringToByteBufWithExtra(CharSequence string, ByteBufPool alloc, int extraBytes)
-