class
FileDecoder
Decodes objects from the specified file using the RTTI system.
Public
Constructors
FileDecoder
FileDecoder(const Path &fileLocation)
FileDecoder
FileDecoder(const SPtr<DataStream> &stream)
Methods
Decode
SPtr<IReflectable> Decode(RTTIOperationContext &context)
Deserializes an IReflectable object by reading the binary data at the provided file location.
- context
- Optional object that will be passed along to all deserialized objects through their deserialization callbacks. Can be used for controlling deserialization, maintaining state or sharing information between objects during deserialization.
Decode
SPtr<IReflectable> Decode()
Deserializes an IReflectable object by reading the binary data at the provided file location.
GetSize
u32 GetSize() const
Gets the size in bytes of the next object in the file.
Returns 0 if no next object.
Skip
void Skip()
Skips over than object in the file.
Calling decode() will decode the next object.
Private
Fields
mInputStream
SPtr<DataStream> mInputStream