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.

2022 Copyright © Apache Software Foundation
| Follow @ApacheIgnite
Ignite Database and Caching Platform | : ver. 2.13.0
Release Date | : April 20 2022