feat(datastore): add CDataStore::Sub8CBBF0

This commit is contained in:
fallenoak 2023-01-09 23:14:54 -06:00
parent 5dce613aeb
commit 9a5e71de22
No known key found for this signature in database
GPG key ID: 7628F8E61AEA070D
2 changed files with 5 additions and 0 deletions

View file

@ -270,3 +270,7 @@ CDataStore& CDataStore::Set(uint32_t pos, uint16_t val) {
return *this; return *this;
} }
bool CDataStore::Sub8CBBF0(uint32_t a2) {
return this->m_read <= this->m_size && this->m_size - this->m_read >= a2;
}

View file

@ -41,6 +41,7 @@ class CDataStore {
CDataStore& PutArray(const uint8_t* val, uint32_t count); CDataStore& PutArray(const uint8_t* val, uint32_t count);
CDataStore& PutData(const void* val, uint32_t bytes); CDataStore& PutData(const void* val, uint32_t bytes);
CDataStore& Set(uint32_t pos, uint16_t val); CDataStore& Set(uint32_t pos, uint16_t val);
bool Sub8CBBF0(uint32_t a2);
}; };
#endif #endif