resonance 1.0.1
Loading...
Searching...
No Matches
toolstream.h
Go to the documentation of this file.
1#pragma once
2
3#include "rnd/stream.h"
4
5namespace Rnd {
6
26class ToolStream : public Stream {
27public:
35
46 void Connect();
47
52 virtual ~ToolStream();
53
58 virtual Stream &Read(void *pDest, int nSize);
59
64 virtual Stream &Write(const void *pSrc, int nSize);
65
70 virtual Stream &Flush();
71
76 virtual Stream &Seek(int nOffset, int nWhence);
77
82 virtual int Tell();
83
88 virtual int Eof();
89
94 virtual int Fail();
95
96private:
97 int mCursor; // +0x04 bytes of mBuffer already handed out
98 char *mBuffer; // +0x08
99 int mFill; // +0x0c bytes of mBuffer that are valid
100 int mArrived; // +0x10 advanced by the transport as instalments land
101 int mConsumed; // +0x14 mArrived as it stood at the last Flush()
102};
103
104} // namespace Rnd
Byte stream that every renderer object serialises itself through.
Definition stream.h:31
virtual Stream & Read(void *pDest, int nSize)
virtual int Tell()
virtual ~ToolStream()
void Connect()
Report to the debug console where the transport should deliver.
ToolStream()
Construct an empty stream over a 0x4000-byte buffer from the untagged heap.
virtual int Fail()
virtual int Eof()
virtual Stream & Write(const void *pSrc, int nSize)
virtual Stream & Flush()
virtual Stream & Seek(int nOffset, int nWhence)
The rendering engine.
Definition animhelper.h:3