mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
新增remainData接口
This commit is contained in:
parent
6df0ee69e0
commit
91f370e925
@ -126,6 +126,10 @@ size_t HttpRequestSplitter::remainDataSize() {
|
||||
return _remain_data_size;
|
||||
}
|
||||
|
||||
const char *HttpRequestSplitter::remainData() const {
|
||||
return _remain_data.data();
|
||||
}
|
||||
|
||||
|
||||
} /* namespace mediakit */
|
||||
|
||||
|
@ -75,6 +75,11 @@ protected:
|
||||
*/
|
||||
size_t remainDataSize();
|
||||
|
||||
/**
|
||||
* 获取剩余数据指针
|
||||
*/
|
||||
const char *remainData() const;
|
||||
|
||||
private:
|
||||
ssize_t _content_len = 0;
|
||||
size_t _remain_data_size = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user