public class ByteBufferUtils extends Object
ByteBufferUtils class.
| Constructor and Description |
|---|
ByteBufferUtils() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
concatenate(byte[]... chunks)
Concatenate two arrays to one
|
static void |
copy(ByteBuffer src,
ByteBuffer dst,
int length)
copy.
|
static void |
copyRemaining(ByteBuffer src,
ByteBuffer dst)
Copies as much as possible
|
public static byte[] concatenate(byte[]... chunks)
chunks - an array of byte.public static void copy(ByteBuffer src, ByteBuffer dst, int length)
copy.
src - a ByteBuffer object.dst - a ByteBuffer object.length - a int.public static void copyRemaining(ByteBuffer src, ByteBuffer dst)
src - a ByteBuffer object.dst - a ByteBuffer object.Copyright © 2026. All rights reserved.