Go to the source code of this file.
|
| int32_t | ocs_textbuf_alloc (ocs_t *ocs, ocs_textbuf_t *textbuf, uint32_t length) |
| |
| uint32_t | ocs_textbuf_initialized (ocs_textbuf_t *textbuf) |
| |
| int32_t | ocs_textbuf_init (ocs_t *ocs, ocs_textbuf_t *textbuf, void *buffer, uint32_t length) |
| |
| void | ocs_textbuf_free (ocs_t *ocs, ocs_textbuf_t *textbuf) |
| |
| void | ocs_textbuf_putc (ocs_textbuf_t *textbuf, uint8_t c) |
| |
| void | ocs_textbuf_puts (ocs_textbuf_t *textbuf, char *s) |
| |
| | __attribute__ ((format(printf, 2, 3))) extern void ocs_textbuf_printf(ocs_textbuf_t *textbuf |
| |
| const char | __attribute__ ((format(printf, 2, 0))) extern void ocs_textbuf_vprintf(ocs_textbuf_t *textbuf |
| |
| void | ocs_textbuf_buffer (ocs_textbuf_t *textbuf, uint8_t *buffer, uint32_t buffer_length) |
| |
| void | ocs_textbuf_copy (ocs_textbuf_t *textbuf, uint8_t *buffer, uint32_t buffer_length) |
| |
| int32_t | ocs_textbuf_remaining (ocs_textbuf_t *textbuf) |
| |
| void | ocs_textbuf_reset (ocs_textbuf_t *textbuf) |
| |
| uint8_t * | ocs_textbuf_get_buffer (ocs_textbuf_t *textbuf) |
| |
| int32_t | ocs_textbuf_get_length (ocs_textbuf_t *textbuf) |
| |
| int32_t | ocs_textbuf_get_written (ocs_textbuf_t *textbuf) |
| |
| uint8_t * | ocs_textbuf_ext_get_buffer (ocs_textbuf_t *textbuf, uint32_t idx) |
| |
| int32_t | ocs_textbuf_ext_get_length (ocs_textbuf_t *textbuf, uint32_t idx) |
| |
| int32_t | ocs_textbuf_ext_get_written (ocs_textbuf_t *textbuf, uint32_t idx) |
| |
|
| const char * | fmt |
| |
| const char const char va_list | ap |
| |
| #define OCS_TEXTBUF_MAX_ALLOC_LEN (256*1024) |
| __attribute__ |
( |
(format(printf, 2, 3)) |
| ) |
|
| const char __attribute__ |
( |
(format(printf, 2, 0)) |
| ) |
|
| int32_t ocs_textbuf_alloc |
( |
ocs_t * |
ocs, |
|
|
ocs_textbuf_t * |
textbuf, |
|
|
uint32_t |
length |
|
) |
| |
| void ocs_textbuf_buffer |
( |
ocs_textbuf_t * |
textbuf, |
|
|
uint8_t * |
buffer, |
|
|
uint32_t |
buffer_length |
|
) |
| |
| void ocs_textbuf_copy |
( |
ocs_textbuf_t * |
textbuf, |
|
|
uint8_t * |
buffer, |
|
|
uint32_t |
buffer_length |
|
) |
| |
| uint8_t* ocs_textbuf_ext_get_buffer |
( |
ocs_textbuf_t * |
textbuf, |
|
|
uint32_t |
idx |
|
) |
| |
| int32_t ocs_textbuf_ext_get_length |
( |
ocs_textbuf_t * |
textbuf, |
|
|
uint32_t |
idx |
|
) |
| |
| int32_t ocs_textbuf_ext_get_written |
( |
ocs_textbuf_t * |
textbuf, |
|
|
uint32_t |
idx |
|
) |
| |
| int32_t ocs_textbuf_init |
( |
ocs_t * |
ocs, |
|
|
ocs_textbuf_t * |
textbuf, |
|
|
void * |
buffer, |
|
|
uint32_t |
length |
|
) |
| |
| const char const char va_list ap |
| const char const char* fmt |