mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine the file stream, to file reader and writer. 0.9.142
This commit is contained in:
parent
ed3f9f0a40
commit
1a7735182f
13 changed files with 167 additions and 121 deletions
|
@ -30,6 +30,28 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|||
#include <srs_utest.hpp>
|
||||
|
||||
#include <string>
|
||||
#include <srs_kernel_codec.hpp>
|
||||
#include <srs_kernel_flv.hpp>
|
||||
|
||||
/*
|
||||
class MockSrsFileStream : public SrsFileStream
|
||||
{
|
||||
public:
|
||||
MockSrsFileStream();
|
||||
virtual ~MockSrsFileStream();
|
||||
public:
|
||||
public:
|
||||
virtual int open_write(std::string file);
|
||||
virtual int open_read(std::string file);
|
||||
virtual void close();
|
||||
virtual bool is_open();
|
||||
public:
|
||||
virtual int read(void* buf, size_t count, ssize_t* pnread);
|
||||
virtual int write(void* buf, size_t count, ssize_t* pnwrite);
|
||||
virtual int64_t tellg();
|
||||
virtual int64_t lseek(int64_t offset);
|
||||
virtual int64_t filesize();
|
||||
virtual void skip(int64_t size);
|
||||
};
|
||||
*/
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue