Make the tests pass
This commit is contained in:
parent
65d96bf6c1
commit
e4afa8e512
4 changed files with 25 additions and 20 deletions
|
@ -91,15 +91,20 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
std::shared_ptr<BackingMem> backing_mem;
|
||||
u32 offset;
|
||||
std::shared_ptr<BackingMem> backing_mem = nullptr;
|
||||
u32 offset = 0;
|
||||
// Cached values for speed
|
||||
u8* cptr;
|
||||
u32 csize;
|
||||
u8* cptr = nullptr;
|
||||
u32 csize = 0;
|
||||
|
||||
void Init() {
|
||||
cptr = backing_mem->GetPtr() + offset;
|
||||
csize = static_cast<u32>(backing_mem->GetSize() - offset);
|
||||
if (backing_mem) {
|
||||
cptr = backing_mem->GetPtr() + offset;
|
||||
csize = static_cast<u32>(backing_mem->GetSize() - offset);
|
||||
} else {
|
||||
cptr = nullptr;
|
||||
csize = 0;
|
||||
}
|
||||
}
|
||||
|
||||
template <class Archive>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue