62 void extract(
void* destination,
int offset,
int length)
const;
76 bool is_compressed()
const;
79 static const int ROD_IS_FILE;
80 static const int ROD_IS_COMPRESSED;
81 static const int ROD_TYPE;
83 static const int ROD_TYPE_UNKNOWN;
84 static const int ROD_TYPE_ASSET;
85 static const int ROD_TYPE_FONT;
Definition: readonly_data.hpp:36
__attribute__((packed)) short header_size
Some technical observations to account for during implementation:
__attribute__((packed)) int data_length
equilavent of sizeof(*this), but foresees class inheritance
__attribute__((packed)) unsigned short flags
void extract(void *destination) const
writes all binary data to the given address
ReadOnlyData(int header_size=sizeof(ReadOnlyData))
__attribute__((packed)) char *data_source
size in bytes of the actual data
void extract(void *destination, int offset, int length) const
writes binary data sequence to the given address
bool is_file() const
checks if data is written to file