core: stringstream: added read-support
any characters written to a stringstream can be optionally read back again using the b_stream read API. this functions similar to a ringbuffer, with two key differences: 1) the buffer is not circular, and will continuously expand to accomodate all incoming data. 2) reading data from the stringstream does not remove it from the buffer.
This commit is contained in:
@@ -30,20 +30,6 @@ BLUE_API char *b_stringstream_steal(b_stringstream *strv);
|
||||
|
||||
BLUE_API size_t b_stringstream_get_length(const b_stringstream *strv);
|
||||
|
||||
#if 0
|
||||
BLUE_API void b_stringstream_push_indent(b_stringstream *strv, int indent);
|
||||
BLUE_API void b_stringstream_pop_indent(b_stringstream *strv);
|
||||
|
||||
BLUE_API b_status b_stringstream_add(b_stringstream *strv, const char *str);
|
||||
BLUE_API b_status b_stringstream_addf(b_stringstream *strv, const char *format, ...);
|
||||
BLUE_API b_status b_stringstream_addv(b_stringstream *strv, const char **strs);
|
||||
BLUE_API b_status b_stringstream_addvf(
|
||||
b_stringstream *strv, const char *format, va_list arg);
|
||||
BLUE_API b_status b_stringstream_addvl(
|
||||
b_stringstream *strv, const char **strs, size_t count);
|
||||
BLUE_API b_status b_stringstream_add_many(b_stringstream *strv, ...);
|
||||
#endif
|
||||
|
||||
B_DECLS_END;
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user