public final class PtrBuffer extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
CheckBuffer |
| Constructor and Description |
|---|
PtrBuffer(ByteBuffer bb,
int num) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int val) |
void |
add(int idx,
int val) |
void |
clear()
Does not reset the size
|
void |
clear(int idx)
Does not reset the size
|
void |
clear(int idx,
int len)
Does not reset the size
|
void |
copy(int srcIdx,
org.apache.jena.dboe.base.buffer.BufferBase dst,
int dstIdx,
int len) |
void |
copyToTop(org.apache.jena.dboe.base.buffer.BufferBase dst) |
void |
decSize() |
void |
decSize(int n) |
PtrBuffer |
duplicate()
A duplicate which does not share anything with the original - for testing
|
int |
get(int idx) |
int |
getHigh() |
int |
getLow() |
int |
getSize() |
void |
incSize() |
void |
incSize(int n) |
boolean |
isClear(int idx)
Is the record at idx set clear or not?
This is done without regard to buffer size.
|
boolean |
isEmpty() |
boolean |
isFull() |
int |
maxSize() |
void |
remove(int idx) |
void |
removeTop()
Remove top element
|
void |
set(int idx,
int val) |
void |
setSize(int n) |
void |
shiftDown(int idx) |
void |
shiftDownN(int idx,
int num) |
void |
shiftLeft(org.apache.jena.dboe.base.buffer.BufferBase other)
Move the element from the low end of other to the high end of this
|
void |
shiftRight(org.apache.jena.dboe.base.buffer.BufferBase other)
Move the element from the high end of this to the low end of other
|
void |
shiftUp(int idx) |
void |
shiftUpN(int idx,
int num) |
int |
size() |
int |
slotLen() |
String |
toString() |
public static final boolean CheckBuffer
public PtrBuffer(ByteBuffer bb, int num)
public int get(int idx)
public int getHigh()
public int getLow()
public void add(int val)
public void add(int idx,
int val)
public void set(int idx,
int val)
public PtrBuffer duplicate()
public final void copy(int srcIdx,
org.apache.jena.dboe.base.buffer.BufferBase dst,
int dstIdx,
int len)
public final void copyToTop(org.apache.jena.dboe.base.buffer.BufferBase dst)
public final void removeTop()
public final void remove(int idx)
public final void clear(int idx,
int len)
public final void clear()
public final void clear(int idx)
public final boolean isClear(int idx)
public final boolean isFull()
public final boolean isEmpty()
public final void incSize()
public final void incSize(int n)
public final void decSize()
public final void decSize(int n)
public final int slotLen()
public final int getSize()
public final void setSize(int n)
public final int size()
public final int maxSize()
public final void shiftUp(int idx)
public final void shiftUpN(int idx,
int num)
public final void shiftDown(int idx)
public final void shiftDownN(int idx,
int num)
public void shiftRight(org.apache.jena.dboe.base.buffer.BufferBase other)
public void shiftLeft(org.apache.jena.dboe.base.buffer.BufferBase other)
Licensed under the Apache License, Version 2.0