Package org.apache.ignite.mem

## Interface MemoryAllocator

-     public interface MemoryAllocator

  Base interface for offheap memory allocator.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `long` | `allocateMemory​(long size)` |
    `void` | `freeMemory​(long addr)` | Deallocates memory.

- - ### Method Detail

    - #### allocateMemory

          long allocateMemory​(long size)

      Parameters:
        `size` - Size of allocated memory.
      Returns:
        Pointer to memory or `0` if failed.

    - #### freeMemory

          void freeMemory​(long addr)

      Deallocates memory.
      Parameters:
        `addr` - Address of memory.