public class GridHadoopOffheapBuffer extends Object
| Constructor and Description |
|---|
GridHadoopOffheapBuffer(long bufPtr,
long bufSize) |
public GridHadoopOffheapBuffer(long bufPtr,
long bufSize)
bufPtr - Pointer to buffer begin.bufSize - Size of the buffer.public void set(long bufPtr,
long bufSize)
bufPtr - Pointer to buffer begin.bufSize - Size of the buffer.public long begin()
public long capacity()
public long remaining()
public long pointer()
public void pointer(long ptr)
ptr - Absolute pointer to the current position inside of the buffer.public long move(long size)
size - Size move on.0 if move goes beyond the end of the buffer.public boolean isInside(long ptr)
ptr - Pointer.true If the given pointer is inside of this buffer.public void reset()
Copyright © 2014. All rights reserved.