libnedit
Lightweight C++ library for Nintendo DS(i) formats
Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | List of all members
ntr::fmt::Utility Struct Reference
Inheritance diagram for ntr::fmt::Utility:
ntr::fmt::nfs::NitroFsFileFormat ntr::fs::ExternalFsFileFormat ntr::fs::FileFormat

Classes

struct  Header
 

Public Member Functions

 Utility (const Utility &)=delete
 
size_t GetBaseOffset () override
 
size_t GetFatEntriesOffset () override
 
size_t GetFatEntryCount () override
 
Result OnFileSystemWrite (fs::BinaryFile &w_bf, const ssize_t size_diff) override
 
Result ValidateImpl (const std::string &path, std::shared_ptr< fs::FileHandle > file_handle, const fs::FileCompression comp) override
 
Result ReadImpl (const std::string &path, std::shared_ptr< fs::FileHandle > file_handle, const fs::FileCompression comp) override
 
- Public Member Functions inherited from ntr::fmt::nfs::NitroFsFileFormat
virtual bool GetAlignmentBetweenFileData (size_t &out_align)
 
Result LookupFile (const std::string &path, NitroFile &out_file) const
 
Result GetName (const NitroEntryBase &entry, std::string &out_name) const
 
Result DoWithReadFile (std::function< Result(fs::BinaryFile &)> fn) const
 
Result SaveFileSystem () override
 
- Public Member Functions inherited from ntr::fs::ExternalFsFileFormat
std::string GetExternalFsPath (const std::string &path)
 
std::string GetBasePath (const std::string &ext_fs_path)
 
Result WriteImpl (const std::string &path, std::shared_ptr< fs::FileHandle > file_handle, const fs::FileCompression comp) override
 
- Public Member Functions inherited from ntr::fs::FileFormat
Result Validate (const std::string &path, std::shared_ptr< fs::FileHandle > file_handle, const fs::FileCompression comp=fs::FileCompression::None)
 
Result ReadFrom (const std::string &path, std::shared_ptr< fs::FileHandle > file_handle, const fs::FileCompression comp=fs::FileCompression::None)
 
Result ReadCompressedFrom (const std::string &path, std::shared_ptr< fs::FileHandle > file_handle)
 
Result WriteTo (const std::string &path, std::shared_ptr< fs::FileHandle > file_handle)
 
Result WriteTo (std::shared_ptr< fs::FileHandle > file_handle)
 

Public Attributes

Header header
 
- Public Attributes inherited from ntr::fmt::nfs::NitroFsFileFormat
nfs::NitroDirectory nitro_fs
 
- Public Attributes inherited from ntr::fs::ExternalFsFileFormat
u32 ext_fs_id
 
std::string ext_fs_root_path
 
- Public Attributes inherited from ntr::fs::FileFormat
std::string read_path
 
std::shared_ptr< fs::FileHandleread_file_handle
 
std::string write_path
 
std::shared_ptr< fs::FileHandlewrite_file_handle
 
fs::FileCompression comp
 

Member Function Documentation

◆ GetBaseOffset()

size_t ntr::fmt::Utility::GetBaseOffset ( )
inlineoverridevirtual

Reimplemented from ntr::fmt::nfs::NitroFsFileFormat.

◆ GetFatEntriesOffset()

size_t ntr::fmt::Utility::GetFatEntriesOffset ( )
inlineoverridevirtual

◆ GetFatEntryCount()

size_t ntr::fmt::Utility::GetFatEntryCount ( )
inlineoverridevirtual

◆ OnFileSystemWrite()

Result ntr::fmt::Utility::OnFileSystemWrite ( fs::BinaryFile & w_bf,
const ssize_t size_diff )
inlineoverridevirtual

◆ ReadImpl()

Result ntr::fmt::Utility::ReadImpl ( const std::string & path,
std::shared_ptr< fs::FileHandle > file_handle,
const fs::FileCompression comp )
overridevirtual

Implements ntr::fs::FileFormat.

◆ ValidateImpl()

Result ntr::fmt::Utility::ValidateImpl ( const std::string & path,
std::shared_ptr< fs::FileHandle > file_handle,
const fs::FileCompression comp )
overridevirtual

Implements ntr::fs::FileFormat.


The documentation for this struct was generated from the following files: