[ox/mc] Add Walker

(synced from def449607c)
This commit is contained in:
2019-02-24 23:57:31 -06:00
parent 9c42b37933
commit acd04c496c
14 changed files with 234 additions and 52 deletions
+8 -3
View File
@@ -46,6 +46,11 @@ class MetalClawReader {
int op(const char*, bool *val);
/**
* Reads an array length from the current location in the buffer.
*/
[[nodiscard]] std::size_t arrayLength();
template<typename T>
int op(const char*, T *val, std::size_t len);
@@ -87,9 +92,9 @@ class MetalClawReader {
*/
bool fields();
static constexpr OpType opType() {
return OpType::Read;
}
static constexpr OpType opType() {
return OpType::Read;
}
private:
template<typename I>