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.16.0
Release Date | : December 15 2023