![]() |
Plasma Engine
2.0
|
Simple class to handle asset file headers (the very first bytes in all transformed asset files) More...
#include <AssetFileHeader.h>
Public Member Functions | |
plResult | Read (plStreamReader &inout_stream) |
Reads the hash from file. If the file is outdated, the hash is set to 0xFFFFFFFFFFFFFFFF. | |
plResult | Write (plStreamWriter &inout_stream) const |
Writes the asset hash to file (plus a little version info) | |
bool | IsFileUpToDate (plUInt64 uiExpectedHash, plUInt16 uiVersion) const |
Checks whether the stored file contains the same hash. | |
plUInt64 | GetFileHash () const |
Returns the asset file hash. | |
void | SetFileHashAndVersion (plUInt64 uiHash, plUInt16 v) |
Sets the asset file hash. | |
plUInt16 | GetFileVersion () const |
Returns the asset type version. | |
const plHashedString & | GetGenerator () |
Returns the generator which was used to produce the asset file. | |
void | SetGenerator (plStringView sGenerator) |
Allows to set the generator string. | |
Simple class to handle asset file headers (the very first bytes in all transformed asset files)