More TODO improvements
This commit is contained in:
@@ -28,10 +28,23 @@ namespace JabyEngine {
|
||||
return {reinterpret_cast<ProcessRoutine>(process_routine), data_adr};
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
T simple_read_r() {
|
||||
static constexpr size_t T_SIZE = sizeof(T);
|
||||
|
||||
T value = *reinterpret_cast<const T*>(this->data_adr);
|
||||
Configuration::processed(T_SIZE);
|
||||
return value;
|
||||
}
|
||||
|
||||
constexpr void processed(size_t bytes) {
|
||||
this->data_adr += bytes;
|
||||
this->data_bytes -= bytes;
|
||||
}
|
||||
|
||||
constexpr void skip(size_t bytes) {
|
||||
Configuration::processed(bytes);
|
||||
}
|
||||
};
|
||||
|
||||
Configuration config;
|
||||
|
Reference in New Issue
Block a user