interface Buffer32
| Modifier and Type | Method and Description |
|---|---|
void |
andLastWord(int mask)
Replaces the last word position in the buffer
with its bitwise-and with the given mask.
|
void |
andWord(int position,
int mask)
Replaces the word at the given position in the buffer
with its bitwise-and with the given mask.
|
void |
clear()
Resets the buffer
The buffer is not fully cleared and any new set operations should
overwrite stale data
|
Buffer32 |
clone()
Creates and returns a copy of the buffer
|
void |
collapse(int position,
int length)
Removes a given number of words at the given position in the buffer.
|
void |
ensureCapacity(int capacity)
Increases the size of the buffer if necessary
|
void |
expand(int position,
int length)
Expands the buffer by adding the given number of words at the given position.
|
int |
getLastWord()
Returns the last word of the buffer
|
int |
getWord(int position)
Returns the word at a given position
|
void |
negateWord(int position)
Negates the word at the given position in the buffer
|
void |
negative_push_back(Buffer32 buffer,
int start,
int number)
Same as push_back, but the words are negated.
|
void |
orLastWord(int mask)
Replaces the last word position in the buffer
with its bitwise-or with the given mask.
|
void |
orWord(int position,
int mask)
Replaces the word at the given position in the buffer
with its bitwise-or with the given mask.
|
void |
push_back(Buffer32 buffer,
int start,
int number)
Appends the specified buffer words to the end of the buffer.
|
void |
push_back(int word)
Appends the specified word to the end of the buffer
|
void |
removeLastWord()
Removes the last word from the buffer
|
void |
setLastWord(int word)
Replaces the last word in the buffer with
the specified word.
|
void |
setWord(int position,
int word)
Replaces the word at the given position in the buffer with
the specified word.
|
int |
sizeInWords()
Returns the actual size in words
|
void |
swap(Buffer32 other)
Swap the content of the buffer with another.
|
void |
trim()
Reduces the internal buffer to its minimal allowable size.
|
int sizeInWords()
void ensureCapacity(int capacity)
int getWord(int position)
position - int getLastWord()
void clear()
void trim()
void setWord(int position,
int word)
position - word - void setLastWord(int word)
word - void push_back(int word)
word - void push_back(Buffer32 buffer, int start, int number)
buffer - the bufferstart - the position of the first word to addnumber - the number of words to addvoid negative_push_back(Buffer32 buffer, int start, int number)
buffer - the bufferstart - the position of the first word to addnumber - the number of words to addvoid removeLastWord()
void negateWord(int position)
position - void andWord(int position,
int mask)
position - mask - void orWord(int position,
int mask)
position - mask - void andLastWord(int mask)
mask - void orLastWord(int mask)
mask - void expand(int position,
int length)
position - the position of the buffer where to add wordslength - the number of words to addvoid collapse(int position,
int length)
position - the position of the buffer where to add wordslength - the number of words to addBuffer32 clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedExceptionvoid swap(Buffer32 other)
other - buffer to swap with