Method |
Description |
|
__construct ( Kraken\Util\Buffer\BufferInterface $buffer ) |
|
|
__destruct ( ) |
|
|
current ( ) : string |
Return the current character in the buffer at the iterator position. |
|
insert ( string $data ) |
Insert the given string into the buffer at the current iterator position. |
|
key ( ) : integer |
Return the current position (key) of the iterator. |
|
next ( ) |
Move to the next character in the buffer. |
|
prev ( ) |
Move to the previous character in the buffer. |
|
remove ( ) : string |
Remove the byte at the current iterator position and moves the iterator to the previous character. |
|
replace ( string $data ) : string |
Replace the byte at the current iterator position with the given string. |
|
rewind ( ) |
Rewind the iterator to the beginning of the buffer. |
|
seek ( integer $position ) |
Move to the given position in the buffer. |
|
valid ( ) : boolean |
Determine if the iterator is valid. |
|