public class Lib
extends java.lang.Object
Constructor and Description |
---|
Lib() |
Modifier and Type | Method and Description |
---|---|
static long |
mem_region_create(long size)
Create a new memory region.
|
static void |
mem_region_destroy(long handle)
Destroy a memory region.
|
static void |
mem_region_release(long handle)
Release all bytes allocated by the region.
|
public static long mem_region_create(long size)
size
- Initial size of the memory region. Alocations
beyond this size will result in additional C heap use.public static void mem_region_release(long handle)
handle
- The region handle return by mem_region_create()public static void mem_region_destroy(long handle)
handle
- The region handle return by mem_region_create()