Public Types | |
enum | { bufcapacitybytes, bufcapacity = bufcapacitybytes / (sizeof(char_t) + 4) } |
Public Member Functions | |
xml_buffered_writer (xml_writer &writer_, xml_encoding user_encoding) | |
~xml_buffered_writer () | |
void | flush () |
void | flush (const char_t *data, size_t size) |
void | write (const char_t *data, size_t length) |
void | write (const char_t *data) |
void | write (char_t d0) |
void | write (char_t d0, char_t d1) |
void | write (char_t d0, char_t d1, char_t d2) |
void | write (char_t d0, char_t d1, char_t d2, char_t d3) |
void | write (char_t d0, char_t d1, char_t d2, char_t d3, char_t d4) |
void | write (char_t d0, char_t d1, char_t d2, char_t d3, char_t d4, char_t d5) |
Public Attributes | |
char_t | buffer [bufcapacity] |
union { | |
uint8_t data_u8 [4 *bufcapacity] | |
uint16_t data_u16 [2 *bufcapacity] | |
uint32_t data_u32 [bufcapacity] | |
char_t data_char [bufcapacity] | |
} | scratch |
xml_writer & | writer |
size_t | bufsize |
xml_encoding | encoding |
Definition at line 2498 of file pugixml.cpp.
anonymous enum |
xml_buffered_writer::xml_buffered_writer | ( | xml_writer & | writer_, | |
xml_encoding | user_encoding | |||
) | [inline] |
xml_buffered_writer::~xml_buffered_writer | ( | ) | [inline] |
Definition at line 2508 of file pugixml.cpp.
References flush().
void xml_buffered_writer::flush | ( | const char_t * | data, | |
size_t | size | |||
) | [inline] |
Definition at line 2517 of file pugixml.cpp.
References convert_buffer(), get_write_native_encoding(), scratch, and writer.
void xml_buffered_writer::flush | ( | ) | [inline] |
Definition at line 2512 of file pugixml.cpp.
References buffer, and bufsize.
Referenced by write(), and ~xml_buffered_writer().
void xml_buffered_writer::write | ( | char_t | d0, | |
char_t | d1, | |||
char_t | d2, | |||
char_t | d3, | |||
char_t | d4, | |||
char_t | d5 | |||
) | [inline] |
Definition at line 2618 of file pugixml.cpp.
References bufcapacity, buffer, bufsize, and flush().
void xml_buffered_writer::write | ( | char_t | d0, | |
char_t | d1, | |||
char_t | d2, | |||
char_t | d3, | |||
char_t | d4 | |||
) | [inline] |
Definition at line 2607 of file pugixml.cpp.
References bufcapacity, buffer, bufsize, and flush().
void xml_buffered_writer::write | ( | char_t | d0, | |
char_t | d1, | |||
char_t | d2, | |||
char_t | d3 | |||
) | [inline] |
Definition at line 2597 of file pugixml.cpp.
References bufcapacity, buffer, bufsize, and flush().
void xml_buffered_writer::write | ( | char_t | d0, | |
char_t | d1, | |||
char_t | d2 | |||
) | [inline] |
Definition at line 2588 of file pugixml.cpp.
References bufcapacity, buffer, bufsize, and flush().
void xml_buffered_writer::write | ( | char_t | d0, | |
char_t | d1 | |||
) | [inline] |
Definition at line 2580 of file pugixml.cpp.
References bufcapacity, buffer, bufsize, and flush().
void xml_buffered_writer::write | ( | char_t | d0 | ) | [inline] |
Definition at line 2573 of file pugixml.cpp.
References bufcapacity, buffer, bufsize, and flush().
void xml_buffered_writer::write | ( | const char_t * | data | ) | [inline] |
Definition at line 2569 of file pugixml.cpp.
References strlength(), and write().
void xml_buffered_writer::write | ( | const char_t * | data, | |
size_t | length | |||
) | [inline] |
Definition at line 2533 of file pugixml.cpp.
References bufcapacity, buffer, bufsize, flush(), get_valid_length(), get_write_native_encoding(), and writer.
Referenced by node_output(), node_output_attributes(), text_output(), text_output_cdata(), text_output_escaped(), and write().
char_t xml_buffered_writer::buffer[bufcapacity] |
size_t xml_buffered_writer::bufsize |
char_t xml_buffered_writer::data_char[bufcapacity] |
Definition at line 2650 of file pugixml.cpp.
uint16_t xml_buffered_writer::data_u16[2 *bufcapacity] |
Definition at line 2648 of file pugixml.cpp.
uint32_t xml_buffered_writer::data_u32[bufcapacity] |
Definition at line 2649 of file pugixml.cpp.
uint8_t xml_buffered_writer::data_u8[4 *bufcapacity] |
Definition at line 2647 of file pugixml.cpp.
xml_encoding xml_buffered_writer::encoding |
Definition at line 2655 of file pugixml.cpp.
union { ... } xml_buffered_writer::scratch |
Referenced by flush().
xml_writer& xml_buffered_writer::writer |