Interface ByteBufferAllocator

All Known Implementing Classes:
DirectByteBufferAllocator, HeapByteBufferAllocator

public interface ByteBufferAllocator
Abstract interface to allocate ByteBuffer instances.
Since:
4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    allocate(int size)
    Allocates ByteBuffer of the given size.
  • Method Details

    • allocate

      ByteBuffer allocate(int size)
      Allocates ByteBuffer of the given size.
      Parameters:
      size - the size of the buffer.
      Returns:
      byte buffer.