MFMv2.0.10
Movable Feast Machine Simulator 2.0.10
|
#include <AtomSerializer.h>
Public Member Functions | |
AtomSerializer (Atom< CC > &atom) | |
Result | PrintTo (ByteSink &bs, s32 argument=0) |
Result | ReadFrom (ByteSource &bs, s32 argument=0) |
const BitVector< BPA > & | GetBits () const |
Additional Inherited Members | |
![]() | |
enum | Result { UNSUPPORTED = -1, FAILURE = 0, SUCCESS = 1 } |
A wrapper class to use for making an Atom ByteSerializable. We don' make Atom itself ByteSerializable because ByteSerializable has virtual functions and we're not going to pay for a vtable pointer in each Atom..
|
inlinevirtual |
Print a representation of this ByteSerializble to the given byteSink, with its details possibly modified by argument. The meaning of argument is unspecified except that 0 should be interpreted as a request for default, 'no modification', formatting.
Implements MFM::ByteSerializable.
|
inlinevirtual |
Modify this object by reading a representation of a ByteSerializable from the given byteSource, with its details possibly modified by argument. The meaning of argument is unspecified except that 0 should be interpreted as a request for default, 'no modification', interpretation.
Implements MFM::ByteSerializable.