Home | History | Annotate | Download | only in libxml2

Lines Matching refs:buffer

532  * Prints the given namespace to the output buffer from C14N context.
565 * buffer from C14N context as follows
679 * buffer from C14N context as follows
874 * Prints the given attribute to the output buffer from C14N context.
924 * buffer from C14N context as follows
934 xmlChar *buffer;
953 buffer = xmlC11NNormalizeAttr(value);
955 if (buffer != NULL) {
956 xmlOutputBufferWriteString(ctx->buf, (const char *) buffer);
957 xmlFree(buffer);
1097 * buffer from C14N context as follows
1548 xmlChar *buffer;
1550 buffer = xmlC11NNormalizeText(cur->content);
1551 if (buffer != NULL) {
1553 buffer);
1554 xmlFree(buffer);
1584 xmlChar *buffer;
1589 buffer = xmlC11NNormalizePI(cur->content);
1590 if (buffer != NULL) {
1592 (const char *) buffer);
1593 xmlFree(buffer);
1631 xmlChar *buffer;
1634 buffer = xmlC11NNormalizeComment(cur->content);
1635 if (buffer != NULL) {
1637 (const char *) buffer);
1638 xmlFree(buffer);
1762 * @buf: the output buffer to store canonical XML; this
1763 * buffer MUST have encoder==NULL because C14N requires
1784 * Validate the encoding output buffer encoding
1788 "xmlC14NNewCtx: output buffer encoder != NULL but C14N requires UTF8 output\n");
1854 * @buf: the output buffer to store canonical XML; this
1855 * buffer MUST have encoder==NULL because C14N requires
1858 * Dumps the canonized image of given XML document into the provided buffer.
1892 * Validate the encoding output buffer encoding
1896 "xmlC14NExecute: output buffer encoder != NULL but C14N requires UTF8 output\n");
1929 * Flush buffer to get number of bytes written
1933 xmlC14NErrInternal("flushing output buffer");
1956 * @buf: the output buffer to store canonical XML; this
1957 * buffer MUST have encoder==NULL because C14N requires
1960 * Dumps the canonized image of given XML document into the provided buffer.
2017 * create memory buffer with UTF8 (default) encoding
2021 xmlC14NErrMemory("creating output buffer");
2026 * canonize document and write to buffer
2031 xmlC14NErrInternal("saving doc to output buffer");
2036 ret = buf->buffer->use;
2038 *doc_txt_ptr = xmlStrndup(buf->buffer->content, ret);
2090 * save the content to a temp buffer, use default UTF8 encoding.
2099 * canonize document and write to buffer
2104 xmlC14NErrInternal("cannicanize document to buffer");
2119 * Macro used to grow the current buffer.
2123 buffer = (xmlChar *) \
2124 xmlRealloc(buffer, buffer_size * sizeof(xmlChar)); \
2125 if (buffer == NULL) { \
2126 xmlC14NErrMemory("growing buffer"); \
2148 xmlChar *buffer = NULL;
2156 * allocate an translation buffer.
2159 buffer = (xmlChar *) xmlMallocAtomic(buffer_size * sizeof(xmlChar));
2160 if (buffer == NULL) {
2161 xmlC14NErrMemory("allocating buffer");
2164 out = buffer;
2167 if ((out - buffer) > (buffer_size - 10)) {
2168 int indx = out - buffer;
2171 out = &buffer[indx];
2230 return (buffer);