Interface BinaryMemoryAllocatorChunk


  • public interface BinaryMemoryAllocatorChunk
    Memory allocator chunk.
    • Method Detail

      • allocate

        byte[] allocate​(int size)
        Allocate.
        Parameters:
        size - Desired size.
        Returns:
        Data.
      • reallocate

        byte[] reallocate​(byte[] data,
                          int size)
        Reallocate.
        Parameters:
        data - Old data.
        size - Size.
        Returns:
        New data.
      • release

        void release​(byte[] data,
                     int maxMsgSize)
        Shrinks array size if needed.
      • isAcquired

        boolean isAcquired()
        Returns:
        True if acquired.