![]() |
XII Release 0.1.0
|
Simple class to handle asset file headers (the very first bytes in all transformed asset files) More...
#include <AssetFileHeader.h>
Public Member Functions | |
| xiiResult | Read (xiiStreamReader &ref_stream) |
| Reads the hash from file. If the file is outdated, the hash is set to 0xFFFFFFFFFFFFFFFF. | |
| xiiResult | Write (xiiStreamWriter &ref_stream) const |
| Writes the asset hash to file (plus a little version info) | |
| bool | IsFileUpToDate (xiiUInt64 uiExpectedHash, xiiUInt16 uiVersion) const |
| Checks whether the stored file contains the same hash. | |
| xiiUInt64 | GetFileHash () const |
| Returns the asset file hash. | |
| void | SetFileHashAndVersion (xiiUInt64 uiHash, xiiUInt16 v) |
| Sets the asset file hash. | |
| xiiUInt16 | GetFileVersion () const |
| Returns the asset type version. | |
| const xiiHashedString & | GetGenerator () |
| Returns the generator which was used to produce the asset file. | |
| void | SetGenerator (xiiStringView sGenerator) |
| Allows to set the generator string. | |
Simple class to handle asset file headers (the very first bytes in all transformed asset files)