Interface IDirectBufferAllocator

All Known Implementing Classes:
SimpleDirectBufferAllocator

public interface IDirectBufferAllocator
Buffer Allocator interface that can be used for memory reusing without new allocation.
  • Method Summary

    Modifier and Type
    Method
    Description
    allocateBuffer(int minimumCapacity)
    New buffer allocate.
  • Method Details

    • allocateBuffer

      @NonNull ByteBuffer allocateBuffer(int minimumCapacity)
      New buffer allocate.
      Parameters:
      minimumCapacity - minimum buffer capacity.
      Returns:
      allocated ByteBuffer.