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