Class HeapByteBufferAllocator

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.ByteBuffer allocate​(int size)
      Allocates ByteBuffer of the given size.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HeapByteBufferAllocator

        public HeapByteBufferAllocator()
    • Method Detail

      • allocate

        public java.nio.ByteBuffer allocate​(int size)
        Description copied from interface: ByteBufferAllocator
        Allocates ByteBuffer of the given size.
        Specified by:
        allocate in interface ByteBufferAllocator
        Parameters:
        size - the size of the buffer.
        Returns:
        byte buffer.