public class MemoryRange<T extends org.apache.datasketches.memory.Memory> extends Object
Memory. This is used because it is cheaper to create than
calling Memory.region(long, long).
Not immutable. The pointed-to range may change as this object gets reused.| Constructor and Description |
|---|
MemoryRange(T memory,
long start,
long length) |
| Modifier and Type | Method and Description |
|---|---|
long |
length() |
T |
memory()
Returns the underlying memory *without* clipping it to this particular range.
|
void |
set(T memory,
long start,
long length) |
long |
start() |
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.