public final class BufferUtils extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
BufferUtils.Parser<T,E extends Exception> |
Modifier and Type | Method and Description |
---|---|
static byte[] |
bytes(io.netty.buffer.ByteBuf buffer,
int size) |
static <R> R |
peek(io.netty.buffer.ByteBuf buffer,
java.util.function.Function<io.netty.buffer.ByteBuf,R> consumer) |
static <T,E extends Exception> |
repeatCount(io.netty.buffer.ByteBuf buffer,
int count,
BufferUtils.Parser<T,E> parser) |
static <T,E extends Exception> |
repeatRemaining(io.netty.buffer.ByteBuf buffer,
BufferUtils.Parser<T,E> parser) |
static float |
sfloat(io.netty.buffer.ByteBuf buffer) |
static Long |
sint(io.netty.buffer.ByteBuf buffer,
int octets) |
static Integer |
sint16(io.netty.buffer.ByteBuf buffer) |
static Integer |
sint24(io.netty.buffer.ByteBuf buffer) |
static Integer |
sint32(io.netty.buffer.ByteBuf buffer) |
static Long |
sint64(io.netty.buffer.ByteBuf buffer) |
static Integer |
sint8(io.netty.buffer.ByteBuf buffer) |
static void |
skip(io.netty.buffer.ByteBuf buffer,
int size) |
static io.netty.buffer.ByteBuf |
slice(io.netty.buffer.ByteBuf buffer,
int size) |
static com.google.common.primitives.UnsignedLong |
uint(io.netty.buffer.ByteBuf buffer,
int octets) |
static int |
uint16(io.netty.buffer.ByteBuf buffer) |
static int |
uint24(io.netty.buffer.ByteBuf buffer) |
static long |
uint32(io.netty.buffer.ByteBuf buffer) |
static com.google.common.primitives.UnsignedLong |
uint64(io.netty.buffer.ByteBuf buffer) |
static int |
uint8(io.netty.buffer.ByteBuf buffer) |
public static io.netty.buffer.ByteBuf slice(io.netty.buffer.ByteBuf buffer, int size)
public static <R> R peek(io.netty.buffer.ByteBuf buffer, java.util.function.Function<io.netty.buffer.ByteBuf,R> consumer)
public static float sfloat(io.netty.buffer.ByteBuf buffer)
public static com.google.common.primitives.UnsignedLong uint(io.netty.buffer.ByteBuf buffer, int octets)
public static Long sint(io.netty.buffer.ByteBuf buffer, int octets)
public static int uint8(io.netty.buffer.ByteBuf buffer)
public static int uint16(io.netty.buffer.ByteBuf buffer)
public static int uint24(io.netty.buffer.ByteBuf buffer)
public static long uint32(io.netty.buffer.ByteBuf buffer)
public static com.google.common.primitives.UnsignedLong uint64(io.netty.buffer.ByteBuf buffer)
public static Integer sint8(io.netty.buffer.ByteBuf buffer)
public static Integer sint16(io.netty.buffer.ByteBuf buffer)
public static Integer sint24(io.netty.buffer.ByteBuf buffer)
public static Integer sint32(io.netty.buffer.ByteBuf buffer)
public static Long sint64(io.netty.buffer.ByteBuf buffer)
public static byte[] bytes(io.netty.buffer.ByteBuf buffer, int size)
public static void skip(io.netty.buffer.ByteBuf buffer, int size)
public static <T,E extends Exception> List<T> repeatRemaining(io.netty.buffer.ByteBuf buffer, BufferUtils.Parser<T,E> parser) throws E extends Exception
E extends Exception
public static <T,E extends Exception> List<T> repeatCount(io.netty.buffer.ByteBuf buffer, int count, BufferUtils.Parser<T,E> parser) throws E extends Exception
E extends Exception
Copyright © 2020. All rights reserved.