public final class CodecUtils extends Object
| 构造器和说明 |
|---|
CodecUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
findNullTermLen(io.netty.buffer.ByteBuf buf) |
static String |
readFixedLengthString(io.netty.buffer.ByteBuf buf,
int length,
Charset charset) |
static <E extends Enum<E>> |
readIntEnumSet(io.netty.buffer.ByteBuf buf,
Class<E> enumClass) |
static long |
readLengthEncodedInteger(io.netty.buffer.ByteBuf buf) |
static long |
readLengthEncodedInteger(io.netty.buffer.ByteBuf buffer,
int firstUnsignedByte) |
static String |
readLengthEncodedString(io.netty.buffer.ByteBuf buf,
Charset charset) |
static String |
readLengthEncodedString(io.netty.buffer.ByteBuf buf,
int firstByte,
Charset charset) |
static io.netty.util.AsciiString |
readNullTerminatedString(io.netty.buffer.ByteBuf buffer) |
static String |
readNullTerminatedString(io.netty.buffer.ByteBuf buffer,
Charset charset) |
static <E extends Enum<E>> |
readShortEnumSet(io.netty.buffer.ByteBuf buf,
Class<E> enumClass) |
static <E extends Enum<E>> |
toEnumSet(Class<E> enumClass,
long vector) |
static <E extends Enum<E>> |
toLong(Set<E> set) |
static void |
writeLengthEncodedInt(io.netty.buffer.ByteBuf buf,
Long n) |
static void |
writeLengthEncodedString(io.netty.buffer.ByteBuf buf,
CharSequence sequence,
Charset charset) |
static void |
writeNullTerminatedString(io.netty.buffer.ByteBuf buf,
CharSequence sequence,
Charset charset) |
static void |
writeUB2(io.netty.buffer.ByteBuf buffer,
int i) |
static void |
writeUB3(io.netty.buffer.ByteBuf buffer,
int i) |
public static long readLengthEncodedInteger(io.netty.buffer.ByteBuf buf)
public static long readLengthEncodedInteger(io.netty.buffer.ByteBuf buffer,
int firstUnsignedByte)
public static io.netty.util.AsciiString readNullTerminatedString(io.netty.buffer.ByteBuf buffer)
public static String readNullTerminatedString(io.netty.buffer.ByteBuf buffer, Charset charset)
public static int findNullTermLen(io.netty.buffer.ByteBuf buf)
public static String readFixedLengthString(io.netty.buffer.ByteBuf buf, int length, Charset charset)
public static String readLengthEncodedString(io.netty.buffer.ByteBuf buf, Charset charset)
public static String readLengthEncodedString(io.netty.buffer.ByteBuf buf, int firstByte, Charset charset)
public static <E extends Enum<E>> EnumSet<E> readShortEnumSet(io.netty.buffer.ByteBuf buf, Class<E> enumClass)
public static <E extends Enum<E>> EnumSet<E> readIntEnumSet(io.netty.buffer.ByteBuf buf, Class<E> enumClass)
public static void writeLengthEncodedInt(io.netty.buffer.ByteBuf buf,
Long n)
public static void writeUB2(io.netty.buffer.ByteBuf buffer,
int i)
public static void writeUB3(io.netty.buffer.ByteBuf buffer,
int i)
public static void writeLengthEncodedString(io.netty.buffer.ByteBuf buf,
CharSequence sequence,
Charset charset)
public static void writeNullTerminatedString(io.netty.buffer.ByteBuf buf,
CharSequence sequence,
Charset charset)
Copyright © 2021. All rights reserved.