#include <byte_stream.h>
Inheritance diagram for TinyXPath::byte_stream:

Public Member Functions | |
| byte_stream (const char *cp_in) | |
| constructor | |
| ~byte_stream () | |
| destructor | |
| _byte_ | b_top () |
| Returns the byte on top. | |
| _byte_ | b_pop () |
| Consumes one byte. | |
| bool | o_is_valid () |
| true if there are still some byte to consume | |
| unsigned | u_remain () |
| number of bytes still to consume | |
| _byte_ | b_forward (unsigned u_nb_char) |
| peek a byte a little further down the stream | |
| const _byte_ * | bp_get_backward (unsigned u_amount) |
| get a byte backward pointer to the stream | |
Private Attributes | |
| unsigned | u_length |
| Length of the total string, + 1. | |
| _byte_ * | bp_in |
| Total string. | |
| _byte_ * | bp_current |
| Current read position. | |
| _byte_ * | bp_end |
| First invalid position. | |
| bool | o_valid |
| true when there are still some byte to read | |
The only purpose of this class is to walk in a byte stream, available at construction time.
|
|
constructor
|
|
|
destructor
|
|
|
peek a byte a little further down the stream
|
|
|
Consumes one byte.
|
|
|
Returns the byte on top.
|
|
|
get a byte backward pointer to the stream
|
|
|
true if there are still some byte to consume
|
|
|
number of bytes still to consume
|
|
|
Current read position.
|
|
|
First invalid position.
|
|
|
Total string.
|
|
|
true when there are still some byte to read
|
|
|
Length of the total string, + 1.
|