[ox] Replace uint8_t* with char* as buffer type in MC, OC, and Model
(synced from 4f2c0b2e30)
This commit is contained in:
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user