Package org.graylog2.shared.utilities
Class ByteBufferUtils
java.lang.Object
org.graylog2.shared.utilities.ByteBufferUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]readBytes(ByteBuffer buffer) Read the given byte buffer into a byte array This will consume the givenByteBuffer.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 givenByteBuffer.
-
Constructor Details
-
ByteBufferUtils
public ByteBufferUtils()
-
-
Method Details
-
readBytes
Read the given byte buffer into a byte array This will consume the givenByteBuffer. -
readBytes
Read a byte array from the given offset and size in the buffer This will consume the givenByteBuffer.
-