public class ByteBufferUtils extends Object
Constructor and Description |
---|
ByteBufferUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
clear(ByteBuffer[] buffers) |
static void |
flip(ByteBuffer[] buffers) |
static ByteBuffer |
gather(ByteBuffer[] buffers) |
static boolean |
hasRemaining(ByteBuffer[] buffers)
查看ByteBuffer数组是否还有剩余
|
static ByteBuffer |
increaseBufferCapatity(ByteBuffer byteBuffer) |
static int |
indexOf(ByteBuffer buffer,
ByteBuffer pattern) |
static int |
indexOf(ByteBuffer buffer,
ByteBuffer pattern,
int offset) |
static int |
remaining(ByteBuffer[] buffers) |
static String |
toHex(byte b) |
static int |
uByte(byte b) |
public static final ByteBuffer increaseBufferCapatity(ByteBuffer byteBuffer)
byteBuffer
- public static final void flip(ByteBuffer[] buffers)
public static final ByteBuffer gather(ByteBuffer[] buffers)
public static final int remaining(ByteBuffer[] buffers)
public static final void clear(ByteBuffer[] buffers)
public static final String toHex(byte b)
public static final int indexOf(ByteBuffer buffer, ByteBuffer pattern)
public static final int indexOf(ByteBuffer buffer, ByteBuffer pattern, int offset)
public static final boolean hasRemaining(ByteBuffer[] buffers)
buffers
- ByteBufferspublic static final int uByte(byte b)
Copyright © 2021. All rights reserved.