Package org.apache.ignite.internal.mem
Class UnsafeChunk
java.lang.Object
org.apache.ignite.internal.mem.UnsafeChunk
- All Implemented Interfaces:
DirectMemoryRegion
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
UnsafeChunk
public UnsafeChunk(long ptr, long len) - Parameters:
ptr- Pointer to the memory start.len- Memory length.
-
-
Method Details
-
address
public long address()- Specified by:
addressin interfaceDirectMemoryRegion- Returns:
- Region start address.
-
size
public long size()- Specified by:
sizein interfaceDirectMemoryRegion- Returns:
- Region size.
-
slice
Gets a sub-region of this region starting from the given offset.- Specified by:
slicein interfaceDirectMemoryRegion- Parameters:
offset- Offset within this region.- Returns:
- Sub-region.
-
toString
-