Splitter公开一些方法

This commit is contained in:
ziyue 2021-12-24 19:57:03 +08:00
parent 3cba8fca79
commit b1f68b9563

View File

@ -31,6 +31,21 @@ public:
*/
virtual void input(const char *data, size_t len);
/**
*
*/
void reset();
/**
*
*/
size_t remainDataSize();
/**
*
*/
const char *remainData() const;
protected:
/**
*
@ -65,21 +80,6 @@ protected:
*/
void setContentLen(ssize_t content_len);
/**
*
*/
void reset();
/**
*
*/
size_t remainDataSize();
/**
*
*/
const char *remainData() const;
private:
ssize_t _content_len = 0;
size_t _remain_data_size = 0;