resonance 1.0.1
Loading...
Searching...
No Matches
hxvarlennumber.h
Go to the documentation of this file.
1#pragma once
2
3class HxStream;
4
15public:
21
27 explicit HxVarLenNumber(int nValue) : mValue(nValue) {
28 }
29
35 operator int() const {
36 return mValue;
37 }
38
52 HxStream &Write(HxStream &stream) const;
53
66
67 int mValue;
68};
Seekable data source interface, unrelated to IBStream and OBStream.
Definition hxstream.h:35
int mValue
Definition hxvarlennumber.h:67
HxStream & Read(HxStream &stream)
Read a quantity.
HxVarLenNumber(int nValue)
Store a quantity for Write().
Definition hxvarlennumber.h:27
HxVarLenNumber()
Construct with the quantity unset, for Read() to fill.
Definition hxvarlennumber.h:19
HxStream & Write(HxStream &stream) const
Write the quantity.