Package com.google.code.yanf4j.util
Class ByteBufferUtils
java.lang.Object
com.google.code.yanf4j.util.ByteBufferUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final void
clear
(ByteBuffer[] buffers) static final void
flip
(ByteBuffer[] buffers) static final ByteBuffer
gather
(ByteBuffer[] buffers) static final boolean
hasRemaining
(ByteBuffer[] buffers) 查看ByteBuffer数组是否还有剩余static final ByteBuffer
increaseBufferCapatity
(ByteBuffer byteBuffer) static final int
indexOf
(ByteBuffer buffer, ByteBuffer pattern) static final int
indexOf
(ByteBuffer buffer, ByteBuffer pattern, int offset) static final int
remaining
(ByteBuffer[] buffers) static final String
toHex
(byte b) static final int
uByte
(byte b)
-
Constructor Details
-
ByteBufferUtils
public ByteBufferUtils()
-
-
Method Details
-
increaseBufferCapatity
- Parameters:
byteBuffer
-- Returns:
- *
-
flip
-
gather
-
remaining
-
clear
-
toHex
-
indexOf
-
indexOf
-
hasRemaining
查看ByteBuffer数组是否还有剩余- Parameters:
buffers
- ByteBuffers- Returns:
- have remaining
-
uByte
public static final int uByte(byte b)
-