Enumerations | |
enum | NullifyItem { LAST_CHUNK, LAST_NEAR_TO, LAST_GET_FOLLOWING } |
Enum value that allows to configure which item to nullify inside the provided axlStream reference. More... | |
Functions | |
void | axl_stream_accept (axlStream *stream) |
Accept previous inspected chunk to be consumed and moves current stream current the size equal to the chunk inspected. | |
bool | axl_stream_casecmp (const char *chunk1, const char *chunk2, int size) |
Provides the same function like axl_stream_cmp but ignoring the case of the characters (case insensitive manner). | |
void | axl_stream_consume_white_spaces (axlStream *stream) |
Support function which consumes white spaces in the W3C sense. | |
void | axl_stream_free (axlStream *stream) |
Allows to deallocate memory used by the axlStream received. | |
char * | axl_stream_get_following (axlStream *stream, int count) |
Allows to get the following count bytes read from the stream. | |
int | axl_stream_get_global_index (axlStream *stream) |
Returns current global index for the device being streamed. | |
int | axl_stream_get_index (axlStream *stream) |
Returns current index status for the given stream. | |
char * | axl_stream_get_near_to (axlStream *stream, int count) |
Allows to get current status of the given stream, taking the current index, getting an amount of count bytes before and after the given index. | |
int | axl_stream_get_size (axlStream *stream) |
Allows to get current stream size. | |
char * | axl_stream_get_until (axlStream *stream, char *valid_chars, int *chunk_matched, bool accept_terminator, int chunk_num,...) |
Returns the next chunk available on the stream. | |
char * | axl_stream_get_until_ref (axlStream *stream, char *valid_chars, int *chunk_matched, bool accept_terminator, int *result_size, int chunk_num,...) |
Works the same way like axl_strteam_get_until but wihtout allocating the memory returned, and filling the size for the chunk returned in result_size reference. | |
char * | axl_stream_get_until_zero (axlStream *stream, char *valid_chars, int *chunk_matched, bool accept_terminator, int chunk_num,...) |
Allows to get the next string until the separators provided are found or the end of the stream memory is reached. | |
char * | axl_stream_get_untilv (axlStream *stream, char *valid_chars, int *chunk_matched, bool accept_terminator, int *result_size, int chunk_num, va_list args) |
Allows to perform the same operation like axl_stream_get_untilv but providing an already initialized and opened std arg. | |
int | axl_stream_inspect (axlStream *stream, const char *chunk, int inspected_size) |
Allows to perform an inspection of the given chunk on the given stream. | |
int | axl_stream_inspect_several (axlStream *stream, int chunk_num,...) |
Allows to perform several, not excluyen inspect operations, over the given stream. | |
bool | axl_stream_is_white_space (char *chunk) |
Allows to check if the given chunk is a white space in the same of the XML 1.0 Third edition. | |
void | axl_stream_link (axlStream *stream, axlPointer element, axlDestroyFunc func) |
Associates the given axlPointer with the given stream to be life-time dependant. | |
void | axl_stream_move (axlStream *stream, int index) |
Allows to configure current index to be accepted by the stream. | |
axlStream * | axl_stream_new (const char *stream_source, int stream_size, const char *file_path, int fd_handler, axlError **error) |
Creates a new byte stream using as data the string pointer and the size. | |
void | axl_stream_nullify (axlStream *stream, NullifyItem item) |
Allows to nullify the internal reference of the stream, making that reference to be not deallocated once the stream is moving. | |
int | axl_stream_peek (axlStream *stream, const char *chunk, int inspected_size) |
Allows to perform a stream inspection without automatically accept content properly inspected. | |
void | axl_stream_push (axlStream *stream, const char *content, int size) |
Push new content at the begin of the stream. | |
bool | axl_stream_remains (axlStream *stream) |
Allows to get current status of the stream. | |
void | axl_stream_set_buffer_alloc (axlStream *stream, axlStreamAlloc handler, axlPointer data) |
Allows to configure the handler to be executed to alloc memory for the axl_stream_get_until* API. | |
void | axl_stream_unlink (axlStream *stream) |
Unlinks the associated axlDoc instance. |