summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/fssystem/fssystem_integrity_verification_storage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/file_sys/fssystem/fssystem_integrity_verification_storage.h')
-rw-r--r--src/core/file_sys/fssystem/fssystem_integrity_verification_storage.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/core/file_sys/fssystem/fssystem_integrity_verification_storage.h b/src/core/file_sys/fssystem/fssystem_integrity_verification_storage.h
index 08515a268..09f76799d 100644
--- a/src/core/file_sys/fssystem/fssystem_integrity_verification_storage.h
+++ b/src/core/file_sys/fssystem/fssystem_integrity_verification_storage.h
@@ -18,19 +18,10 @@ public:
static constexpr s64 HashSize = 256 / 8;
struct BlockHash {
- u8 hash[HashSize];
+ std::array<u8, HashSize> hash;
};
static_assert(std::is_trivial_v<BlockHash>);
-private:
- VirtualFile m_hash_storage;
- VirtualFile m_data_storage;
- s64 m_verification_block_size;
- s64 m_verification_block_order;
- s64 m_upper_layer_verification_block_size;
- s64 m_upper_layer_verification_block_order;
- bool m_is_real_data;
-
public:
IntegrityVerificationStorage()
: m_verification_block_size(0), m_verification_block_order(0),
@@ -60,6 +51,15 @@ private:
ASSERT(hash != nullptr);
return (hash->hash[HashSize - 1] & 0x80) != 0;
}
+
+private:
+ VirtualFile m_hash_storage;
+ VirtualFile m_data_storage;
+ s64 m_verification_block_size;
+ s64 m_verification_block_order;
+ s64 m_upper_layer_verification_block_size;
+ s64 m_upper_layer_verification_block_order;
+ bool m_is_real_data;
};
} // namespace FileSys