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