public final class CodecUtils extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static int |
findNullTermLen(io.netty.buffer.ByteBuf buf) |
static io.netty.util.AsciiString |
readFixedLengthString(io.netty.buffer.ByteBuf buf,
int len) |
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 buf,
int firstByte) |
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 buf) |
static String |
readNullTerminatedString(io.netty.buffer.ByteBuf buf,
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 buf,
int firstByte)
public static io.netty.util.AsciiString readNullTerminatedString(io.netty.buffer.ByteBuf buf)
public static String readNullTerminatedString(io.netty.buffer.ByteBuf buf, Charset charset)
public static int findNullTermLen(io.netty.buffer.ByteBuf buf)
public static io.netty.util.AsciiString readFixedLengthString(io.netty.buffer.ByteBuf buf,
int len)
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.