Package org.apache.ignite.internal.mem
Class UnsafeChunk
- java.lang.Object
-
- org.apache.ignite.internal.mem.UnsafeChunk
-
- All Implemented Interfaces:
DirectMemoryRegion
public class UnsafeChunk extends Object implements DirectMemoryRegion
-
-
Constructor Summary
Constructors Constructor Description UnsafeChunk(long ptr, long len)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longaddress()longsize()DirectMemoryRegionslice(long offset)Gets a sub-region of this region starting from the given offset.StringtoString()
-
-
-
Method Detail
-
address
public long address()
- Specified by:
addressin interfaceDirectMemoryRegion- Returns:
- Region start address.
-
size
public long size()
- Specified by:
sizein interfaceDirectMemoryRegion- Returns:
- Region size.
-
slice
public DirectMemoryRegion slice(long offset)
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.
-
-