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 and 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.

${current.year} Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.15.0
Release Date | : April 25 2023