![]() |
![]() |
|
|
#include <fastformat/sinks/char_buffer.hpp>
Public Types | |
typedef char_buffer_sink | class_type |
This type. | |
typedef ff_char_t | char_type |
The character type. | |
typedef size_t | size_type |
The size type. | |
Public Member Functions | |
char_buffer_sink (size_type n, char_type *buffer) | |
Constructs from a character buffer. | |
template<size_t N> | |
char_buffer_sink (char_type(&ar)[N]) | |
Constructs from a character array. | |
size_type | size () const |
Attributes. | |
size_type | capacity () const |
The total number of characters accessible to the sink. | |
class_type & | write (size_type cchTotal, size_type numResults, ff_string_slice_t const *results, int flags) |
Operations. |
typedef char_buffer_sink class_type |
This type.
typedef size_t size_type |
The size type.
char_buffer_sink | ( | size_type | n, | |
char_type * | buffer | |||
) | [inline] |
Constructs from a character buffer.
char_buffer_sink | ( | char_type(&) | ar[N] | ) | [inline] |
Constructs from a character array.
size_type size | ( | ) | const [inline] |
size_type capacity | ( | ) | const [inline] |
class_type& write | ( | size_type | cchTotal, | |
size_type | numResults, | |||
ff_string_slice_t const * | results, | |||
int | flags | |||
) | [inline] |
Operations.
Outputs the results, according to the given flags
References char_buffer_sink::capacity(), fastformat::fastformat_getNewlineForPlatform(), ff_string_slice_t::len, ff_string_slice_t::ptr, and char_buffer_sink::size().
Referenced by fastformat::sinks::fmt_slices().
|
|
FastFormat Library documentation © Matthew Wilson, 2006-2009 |
|