Class ByteBufferUtils

java.lang.Object
org.graylog2.shared.utilities.ByteBufferUtils

public abstract class ByteBufferUtils extends Object
  • Constructor Details

    • ByteBufferUtils

      public ByteBufferUtils()
  • Method Details

    • readBytes

      public static byte[] readBytes(ByteBuffer buffer)
      Read the given byte buffer into a byte array This will consume the given ByteBuffer.
    • readBytes

      public 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.