core: stringstream: update stringstream to support b_stream
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
#ifndef BLUELIB_CORE_STRINGSTREAM_H_
|
||||
#define BLUELIB_CORE_STRINGSTREAM_H_
|
||||
|
||||
#include <blue/core/status.h>
|
||||
#include <blue/core/misc.h>
|
||||
#include <blue/core/status.h>
|
||||
#include <blue/core/stream.h>
|
||||
#include <stddef.h>
|
||||
|
||||
typedef struct b_stringstream {
|
||||
b_stream ss_base;
|
||||
char *ss_buf;
|
||||
size_t ss_len;
|
||||
size_t ss_max;
|
||||
@@ -18,6 +20,8 @@ typedef struct b_stringstream {
|
||||
BLUE_API void b_stringstream_begin(b_stringstream *strv, char *buf, size_t max);
|
||||
BLUE_API void b_stringstream_begin_dynamic(b_stringstream *strv);
|
||||
|
||||
BLUE_API size_t b_stringstream_get_length(const b_stringstream *strv);
|
||||
|
||||
BLUE_API void b_stringstream_push_indent(b_stringstream *strv, int indent);
|
||||
BLUE_API void b_stringstream_pop_indent(b_stringstream *strv);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user