fs: miscellaneous bucket tree fixes

This commit is contained in:
Michael Scire 2020-05-19 09:48:44 -07:00
parent a2496e5462
commit f215da3b37
3 changed files with 10 additions and 8 deletions

View file

@ -126,7 +126,7 @@ namespace ams::fssystem {
this->allocator = nullptr;
}
void FillSzero(size_t node_size) const {
void FillZero(size_t node_size) const {
if (this->header) {
std::memset(this->header, 0, node_size);
}
@ -298,7 +298,7 @@ namespace ams::fssystem {
}
bool IsValid() const { return this->entry_index >= 0; }
bool CanMoveNext() const { return this->IsValid() && (this->entry_index + 1 < this->entry_set.info.count || this->entry_set.info.index + 1 < this->entry_set.info.count); }
bool CanMoveNext() const { return this->IsValid() && (this->entry_index + 1 < this->entry_set.info.count || this->entry_set.info.index + 1 < this->entry_set_count); }
bool CanMovePrevious() const { return this->IsValid() && (this->entry_index > 0 || this->entry_set.info.index > 0); }
Result MoveNext();