1c311431ad
The ActionScript code is now under aslib and is built via Maven (and Ant). The CPP code is under cpplib and is ignored by everything (other than service generation), but now at least it's not crufting up the Java submodule with its XCode project. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6783 542714f4-19e9-0310-aa3c-eee0fc999fb1
19 lines
406 B
C++
19 lines
406 B
C++
#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;
|
|
};
|
|
} |