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
5
namespace
Rnd
{
6
26
class
ToolStream
:
public
Stream
{
27
public
:
34
ToolStream
();
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
96
private
:
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
Rnd::Stream
Byte stream that every renderer object serialises itself through.
Definition
stream.h:31
Rnd::ToolStream::Read
virtual Stream & Read(void *pDest, int nSize)
Rnd::ToolStream::Tell
virtual int Tell()
Rnd::ToolStream::~ToolStream
virtual ~ToolStream()
Rnd::ToolStream::Connect
void Connect()
Report to the debug console where the transport should deliver.
Rnd::ToolStream::ToolStream
ToolStream()
Construct an empty stream over a 0x4000-byte buffer from the untagged heap.
Rnd::ToolStream::Fail
virtual int Fail()
Rnd::ToolStream::Eof
virtual int Eof()
Rnd::ToolStream::Write
virtual Stream & Write(const void *pSrc, int nSize)
Rnd::ToolStream::Flush
virtual Stream & Flush()
Rnd::ToolStream::Seek
virtual Stream & Seek(int nOffset, int nWhence)
Rnd
The rendering engine.
Definition
animhelper.h:3
stream.h
src
rnd
toolstream.h
Generated by
1.15.0