Interface MemoryAllocator


@Inclubating
public interface MemoryAllocator
Author:
Ardika Rommy Sanjaya
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static boolean UNCHECKED  
    static boolean UNSAFE_BUFFER  
  • Method Summary

    Modifier and Type Method Description
    Memory allocate​(int capacity)  
    Memory allocate​(int capacity, boolean checking)  
    Memory allocate​(int capacity, int maxCapacity)  
    Memory allocate​(int capacity, int maxCapacity, boolean checking)  
    Memory allocate​(int capacity, int maxCapacity, int readerIndex, int writerIndex)  
    Memory allocate​(int capacity, int maxCapacity, int readerIndex, int writerIndex, boolean checking)  
    void close()  
  • Field Details

  • Method Details

    • allocate

      Memory allocate​(int capacity)
    • allocate

      Memory allocate​(int capacity, boolean checking)
    • allocate

      Memory allocate​(int capacity, int maxCapacity)
    • allocate

      Memory allocate​(int capacity, int maxCapacity, boolean checking)
    • allocate

      Memory allocate​(int capacity, int maxCapacity, int readerIndex, int writerIndex)
    • allocate

      Memory allocate​(int capacity, int maxCapacity, int readerIndex, int writerIndex, boolean checking)
    • close

      void close()