public class ByteBufs extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ByteBufs.DecodeFunction |
static interface |
ByteBufs.EncodeFunction |
Constructor and Description |
---|
ByteBufs() |
Modifier and Type | Method and Description |
---|---|
static io.netty.buffer.ByteBuf[] |
allocAll(io.netty.buffer.ByteBufAllocator alloc,
int count) |
static io.netty.buffer.ByteBuf[] |
duplicateAll(io.netty.buffer.ByteBuf[] buffers) |
static io.netty.buffer.ByteBuf[] |
encode(io.netty.buffer.ByteBufAllocator alloc,
CharSequence[] textBuffers) |
static Object |
lengthDecode(io.netty.buffer.ByteBuf buffer,
ByteBufs.DecodeFunction decode) |
static Object |
lengthDecodeBinary(Type.Codec.Decoder<io.netty.buffer.ByteBuf> decoder,
Context context,
Type type,
Short typeLength,
Integer typeModifier,
io.netty.buffer.ByteBuf buffer,
Class<?> targetClass,
Object targetContext) |
static int |
lengthEncode(io.netty.buffer.ByteBuf buffer,
Object value,
ByteBufs.EncodeFunction encode) |
static void |
lengthEncodeBinary(Type.Codec.Encoder<io.netty.buffer.ByteBuf> encoder,
Context context,
Type type,
Object value,
Object sourceContext,
io.netty.buffer.ByteBuf buffer) |
static String |
readCString(io.netty.buffer.ByteBuf buffer,
Charset charset) |
static void |
releaseAll(io.netty.buffer.ByteBuf[] byteBufs) |
static io.netty.buffer.ByteBuf[] |
retainedDuplicateAll(io.netty.buffer.ByteBuf[] buffers) |
static void |
writeCString(io.netty.buffer.ByteBuf buffer,
byte[] valBytes) |
static void |
writeCString(io.netty.buffer.ByteBuf buffer,
String val,
Charset charset) |
public static io.netty.buffer.ByteBuf[] allocAll(io.netty.buffer.ByteBufAllocator alloc, int count)
public static io.netty.buffer.ByteBuf[] duplicateAll(io.netty.buffer.ByteBuf[] buffers)
public static io.netty.buffer.ByteBuf[] retainedDuplicateAll(io.netty.buffer.ByteBuf[] buffers)
public static void releaseAll(io.netty.buffer.ByteBuf[] byteBufs)
public static io.netty.buffer.ByteBuf[] encode(io.netty.buffer.ByteBufAllocator alloc, CharSequence[] textBuffers)
public static void lengthEncodeBinary(Type.Codec.Encoder<io.netty.buffer.ByteBuf> encoder, Context context, Type type, Object value, Object sourceContext, io.netty.buffer.ByteBuf buffer) throws IOException
IOException
public static int lengthEncode(io.netty.buffer.ByteBuf buffer, Object value, ByteBufs.EncodeFunction encode) throws IOException
IOException
public static Object lengthDecodeBinary(Type.Codec.Decoder<io.netty.buffer.ByteBuf> decoder, Context context, Type type, Short typeLength, Integer typeModifier, io.netty.buffer.ByteBuf buffer, Class<?> targetClass, Object targetContext) throws IOException
IOException
public static Object lengthDecode(io.netty.buffer.ByteBuf buffer, ByteBufs.DecodeFunction decode) throws IOException
IOException
public static void writeCString(io.netty.buffer.ByteBuf buffer, String val, Charset charset)
public static void writeCString(io.netty.buffer.ByteBuf buffer, byte[] valBytes)