16 #ifndef __STRING_BUFFER_BASE_H__ 17 #define __STRING_BUFFER_BASE_H__ 35 bool ensure_space(
size_t max_size,
size_t required_size)
const;
37 bool append(
char *buff,
size_t max_size,
char data);
39 bool append(
char *buff,
size_t max_size,
const char *data);
41 bool append(
char *buff,
size_t max_size,
const char *data,
size_t data_len);
43 bool append_int(
char *buff,
size_t max_size, uint16_t data);
45 int find_last_of(
const char *buff,
char search_char)
const;
52 inline StringBufferBase::StringBufferBase() : _curr_size(0)
56 #endif // !__STRING_BUFFER_BASE_H__ Definition: m2mstringbufferbase.h:26