Class Address
- java.lang.Object
-
- org.neo4j.gds.core.compression.packed.Address
-
public final class Address extends java.lang.Object
An address to some off-heap memory.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
address()
static Address
createAddress(long address, long bytes)
void
free()
Free the underlying memory.void
reset(long address, long bytes)
-
-
-
Method Detail
-
createAddress
public static Address createAddress(long address, long bytes)
-
reset
public void reset(long address, long bytes)
-
free
public void free()
Free the underlying memory.The memory must not have been already freed.
- Throws:
java.lang.IllegalStateException
- if the memory has already been freed.
-
address
public long address()
- Returns:
- a valid (non zero) address.
- Throws:
java.lang.IllegalStateException
- if the address is NULL.
-
-