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