public abstract class ByteBufferUtils extends Object
Constructor and Description |
---|
ByteBufferUtils() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
readBytes(ByteBuffer buffer)
Read the given byte buffer into a byte array
This will consume the given
ByteBuffer . |
static byte[] |
readBytes(ByteBuffer buffer,
int offset,
int size)
Read a byte array from the given offset and size in the buffer
This will consume the given
ByteBuffer . |
public static byte[] readBytes(ByteBuffer buffer)
ByteBuffer
.public static byte[] readBytes(ByteBuffer buffer, int offset, int size)
ByteBuffer
.Copyright © 2012–2019 Graylog, Inc.. All rights reserved.