big merge

This commit is contained in:
Philippe G
2021-12-18 21:04:23 -08:00
parent 955692f8ad
commit 898998efb0
583 changed files with 84472 additions and 1965 deletions

View File

@@ -0,0 +1,26 @@
#ifndef BELL_BYTE_READER_H
#define BELL_BYTE_READER_H
#include "stdlib.h"
/**
* A class for reading bytes from a stream. Further implemented in HTTPStream.h
*/
namespace bell
{
class ByteStream
{
public:
ByteStream(){};
~ByteStream(){};
virtual size_t read(uint8_t *buf, size_t nbytes) = 0;
virtual size_t skip(size_t nbytes) = 0;
virtual size_t position() = 0;
virtual size_t size() = 0;
virtual void close() = 0;
};
}
#endif