Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (16 sloc) 0.406 kB
#pragma once
#include "InputStream.h"
namespace presents {
class FramedInputStream : public InputStream
{
public:
FramedInputStream (InputStream* base);
virtual size_t read(void* pData, size_t bytesToRead);
bool readFrame ();
protected:
int32 _length;
InputStream* _base;
boost::scoped_array<uint8> _readBuffer;
int32 _fillPosition, _readPosition, _readBufferLength;
};
}
Jump to Line
Something went wrong with that request. Please try again.