public class FastIntBuffer
extends java.lang.Object
implements com.ximpleware.extended.IIntBuffer
Constructor and Description |
---|
FastIntBuffer()
FastIntBuffer constructor comment.
|
FastIntBuffer(int e)
Constructor with adjustable buffer page size of the value bfz
|
Modifier and Type | Method and Description |
---|---|
void |
append(int i)
Append a single int to the end of this buffer Instance
|
void |
append(int[] int_array)
Append an int array to the end of this buffer instance
|
void |
clear()
set the size of int buffer to zero, capacity
untouched so int buffer can be reused without
any unnecessary and additional allocation
|
int |
getCapacity()
Returns the total allocated capacity of this buffer instance.
|
int[] |
getIntArray(int startingOffset,
int len)
Returns a single int array representing every int in this buffer instance
|
int |
getPageSize()
Returns the page size of this buffer instance.
|
int |
intAt(int index)
Get the int at the location specified by index.
|
void |
modifyEntry(int index,
int newValue)
Assigns a new int value to location index of the buffer instance.
|
boolean |
resize(int newSz) |
int |
size()
Returns the total number of int values in the buffer instance
|
int[] |
toIntArray()
Returns the int array corresponding to all int values in this buffer instance
|
public FastIntBuffer()
public FastIntBuffer(int e)
e
- int is the size of the internal bufferpublic void append(int[] int_array)
int_array
- int[]public void append(int i)
i
- intpublic int getCapacity()
public int[] getIntArray(int startingOffset, int len)
startingOffset
- intlen
- intpublic int getPageSize()
public int intAt(int index)
intAt
in interface com.ximpleware.extended.IIntBuffer
index
- intpublic void modifyEntry(int index, int newValue)
modifyEntry
in interface com.ximpleware.extended.IIntBuffer
index
- intnewValue
- intpublic int size()
size
in interface com.ximpleware.extended.IIntBuffer
public boolean resize(int newSz)
newSz
- public int[] toIntArray()
public void clear()