24 u32 samples_per_block;
26 u32 samples_per_last_block;
40 inline constexpr size_t GetBlockSize(
const u32 block_idx) {
41 if(block_idx < this->head.block_count) {
42 if(block_idx == this->head.block_count - 1) {
43 return this->head.last_block_size;
46 return this->head.block_size;
56 Result ValidateImpl(
const std::string &path, std::shared_ptr<fs::FileHandle> file_handle,
const fs::FileCompression comp)
override;
57 Result ReadImpl(
const std::string &path, std::shared_ptr<fs::FileHandle> file_handle,
const fs::FileCompression comp)
override;
59 Result WriteImpl(
const std::string &path, std::shared_ptr<fs::FileHandle> file_handle,
const fs::FileCompression comp)
override {
60 NTR_R_FAIL(ResultSTRMWriteNotSupported);