mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
Splitter公开一些方法
This commit is contained in:
parent
3cba8fca79
commit
b1f68b9563
@ -31,6 +31,21 @@ public:
|
|||||||
*/
|
*/
|
||||||
virtual void input(const char *data, size_t len);
|
virtual void input(const char *data, size_t len);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 恢复初始设置
|
||||||
|
*/
|
||||||
|
void reset();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 剩余数据大小
|
||||||
|
*/
|
||||||
|
size_t remainDataSize();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取剩余数据指针
|
||||||
|
*/
|
||||||
|
const char *remainData() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/**
|
/**
|
||||||
* 收到请求头
|
* 收到请求头
|
||||||
@ -65,21 +80,6 @@ protected:
|
|||||||
*/
|
*/
|
||||||
void setContentLen(ssize_t content_len);
|
void setContentLen(ssize_t content_len);
|
||||||
|
|
||||||
/**
|
|
||||||
* 恢复初始设置
|
|
||||||
*/
|
|
||||||
void reset();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 剩余数据大小
|
|
||||||
*/
|
|
||||||
size_t remainDataSize();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取剩余数据指针
|
|
||||||
*/
|
|
||||||
const char *remainData() const;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ssize_t _content_len = 0;
|
ssize_t _content_len = 0;
|
||||||
size_t _remain_data_size = 0;
|
size_t _remain_data_size = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user