[ox] Replace uint8_t* with char* as buffer type in MC, OC, and Model

(synced from 4f2c0b2e30)
This commit is contained in:
2021-05-03 14:15:07 -04:00
parent 5284ae8c1b
commit d4a033c0bf
5 changed files with 10 additions and 12 deletions
+2 -2
View File
@@ -271,8 +271,8 @@ void MetalClawReader::setTypeInfo(const char*, int fields) {
}
template<typename T>
Error readMC(const uint8_t *buff, std::size_t buffLen, T *val) {
MetalClawReader reader(buff, buffLen);
Error readMC(const char *buff, std::size_t buffLen, T *val) {
MetalClawReader reader(bit_cast<uint8_t*>(buff), buffLen);
return model(&reader, val);
}