public class BufferUtils extends Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
bytes(ByteBuffer buffer,
int size) |
static <R> R |
peek(ByteBuffer buffer,
java.util.function.Function<ByteBuffer,R> consumer) |
static float |
sfloat(ByteBuffer buffer) |
static Long |
sint(ByteBuffer buffer,
int octets) |
static Integer |
sint16(ByteBuffer buffer) |
static Integer |
sint24(ByteBuffer buffer) |
static Integer |
sint32(ByteBuffer buffer) |
static Long |
sint64(ByteBuffer buffer) |
static Integer |
sint8(ByteBuffer buffer) |
static void |
skip(ByteBuffer buffer,
int size) |
static ByteBuffer |
slice(ByteBuffer buffer,
int size) |
static com.google.common.primitives.UnsignedLong |
uint(ByteBuffer buffer,
int octets) |
static int |
uint16(ByteBuffer buffer) |
static int |
uint24(ByteBuffer buffer) |
static long |
uint32(ByteBuffer buffer) |
static com.google.common.primitives.UnsignedLong |
uint64(ByteBuffer buffer) |
static int |
uint8(ByteBuffer buffer) |
public static ByteBuffer slice(ByteBuffer buffer, int size)
public static <R> R peek(ByteBuffer buffer, java.util.function.Function<ByteBuffer,R> consumer)
public static float sfloat(ByteBuffer buffer)
public static com.google.common.primitives.UnsignedLong uint(ByteBuffer buffer, int octets)
public static Long sint(ByteBuffer buffer, int octets)
public static int uint8(ByteBuffer buffer)
public static int uint16(ByteBuffer buffer)
public static int uint24(ByteBuffer buffer)
public static long uint32(ByteBuffer buffer)
public static com.google.common.primitives.UnsignedLong uint64(ByteBuffer buffer)
public static Integer sint8(ByteBuffer buffer)
public static Integer sint16(ByteBuffer buffer)
public static Integer sint24(ByteBuffer buffer)
public static Integer sint32(ByteBuffer buffer)
public static Long sint64(ByteBuffer buffer)
public static byte[] bytes(ByteBuffer buffer, int size)
public static void skip(ByteBuffer buffer, int size)
Copyright © 2019. All rights reserved.