input/curl: move code to IcyInputStream

This commit is contained in:
Max Kellermann
2014-05-11 15:32:47 +02:00
parent 09b84c51ee
commit a5d0300787
6 changed files with 219 additions and 86 deletions

View File

@@ -75,6 +75,13 @@ public:
*/
size_t Meta(const void *data, size_t length);
/**
* Parse data and eliminate metadata.
*
* @return the number of data bytes remaining in the buffer
*/
size_t ParseInPlace(void *data, size_t length);
Tag *ReadTag() {
Tag *result = tag;
tag = nullptr;