#include <cstdlib>
Include dependency graph for ixmlmembuf.hpp:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| struct | ixml_membuf |
| The ixml_membuf type. More... | |
Functions | |
| void | ixml_membuf_init (ixml_membuf *m) |
| ixml_membuf initialization routine. | |
| void | ixml_membuf_destroy (ixml_membuf *m) |
| ixml_membuf clearing routine. | |
| int | ixml_membuf_assign (ixml_membuf *m, const void *buf, size_t buf_len) |
| Copies the contents o a buffer to the designated ixml_membuf. | |
| int | ixml_membuf_assign_str (ixml_membuf *m, const char *c_str) |
| Copies a NULL terminated string to the ixml_buffer. | |
| int | ixml_membuf_append (ixml_membuf *m, const void *buf) |
| Appends one byte to the designated ixml_membuffer. | |
| int | ixml_membuf_append_str (ixml_membuf *m, const char *c_str) |
| Appends the contents of a NULL terminated string to the designated ixml_membuf. | |
| int | ixml_membuf_insert (ixml_membuf *m, const void *buf, size_t buf_len, size_t index) |
| struct ixml_membuf |
The ixml_membuf type.
Definition at line 52 of file ixmlmembuf.hpp.
| Class Members | ||
|---|---|---|
| char * | buf | |
| size_t | length | |
| size_t | capacity | |
| size_t | size_inc | |
| void ixml_membuf_init | ( | ixml_membuf * | m | ) |
ixml_membuf initialization routine.
| [in,out] | m | The memory buffer to initializa. |
Definition at line 105 of file ixmlmembuf.cpp.
Here is the caller graph for this function:| void ixml_membuf_destroy | ( | ixml_membuf * | m | ) |
ixml_membuf clearing routine.
The internal buffer is deleted and ixml_membuf_init() is called in the end to reinitialize the buffer.
| [in,out] | m | The memory buffer to clear. |
Definition at line 114 of file ixmlmembuf.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| int ixml_membuf_assign | ( | ixml_membuf * | m, |
| const void * | buf, | ||
| size_t | buf_len | ||
| ) |
Copies the contents o a buffer to the designated ixml_membuf.
The previous contents of the ixml_membuf are destroyed.
| [in,out] | m | The memory buffer on which to operate. |
| [in] | buf | The input buffer to copy from. |
| [in] | buf_len | The number of bytes to copy from the input buffer. |
Definition at line 123 of file ixmlmembuf.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| int ixml_membuf_assign_str | ( | ixml_membuf * | m, |
| const char * | c_str | ||
| ) |
Copies a NULL terminated string to the ixml_buffer.
This is a convenience function that internally uses ixml_membuf_assign().
| [in,out] | m | The memory buffer on which to operate. |
| [in] | c_str | The input string to copy from. |
Definition at line 149 of file ixmlmembuf.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| int ixml_membuf_append | ( | ixml_membuf * | m, |
| const void * | buf | ||
| ) |
Appends one byte to the designated ixml_membuffer.
This is a convenience function that internally uses ixml_membuf_insert().
| [in,out] | m | The memory buffer on which to operate. |
| [in] | buf | The pointer to the byte to append. |
Definition at line 153 of file ixmlmembuf.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| int ixml_membuf_append_str | ( | ixml_membuf * | m, |
| const char * | c_str | ||
| ) |
Appends the contents of a NULL terminated string to the designated ixml_membuf.
This is a convenience function that internally uses ixml_membuf_insert().
| [in,out] | m | The memory buffer on which to operate. |
| [in] | c_str | The input string to copy from. |
Definition at line 163 of file ixmlmembuf.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| int ixml_membuf_insert | ( | ixml_membuf * | m, |
| const void * | buf, | ||
| size_t | buf_len, | ||
| size_t | index | ||
| ) |
| [in,out] | m | The memory buffer on which to operate. |
| [in] | buf | The pointer to the input buffer. |
| [in] | buf_len | The buffer length. |
| [in] | index | The point of insertion relative to the beggining of the ixml_membuf internal buffer. |
Definition at line 171 of file ixmlmembuf.cpp.
Here is the call graph for this function:
Here is the caller graph for this function: