libnedit
Lightweight C++ library for Nintendo DS(i) formats
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ntr::fmt::nfs::NitroFsFileHandle< T > Struct Template Reference
Inheritance diagram for ntr::fmt::nfs::NitroFsFileHandle< T >:
ntr::fs::ExternalFsFileHandle< T > ntr::fs::FileHandle

Public Member Functions

 NitroFsFileHandle (std::shared_ptr< T > nitro_fs_file)
 
bool ExistsImpl (const std::string &path, size_t &out_size) override
 
Result OpenImpl (const std::string &path) override
 
Result GetSizeImpl (size_t &out_size) override
 
Result SetOffsetImpl (const size_t offset, const fs::Position pos) override
 
Result GetOffsetImpl (size_t &out_offset) override
 
Result ReadImpl (void *read_buf, const size_t read_size, size_t &out_read_size) override
 
Result CloseImpl () override
 
- Public Member Functions inherited from ntr::fs::ExternalFsFileHandle< T >
 ExternalFsFileHandle (std::shared_ptr< T > ext_fs_file)
 
bool Exists (const std::string &path, size_t &out_size) override
 
Result Open (const std::string &path, const fs::OpenMode mode) override
 
Result GetSize (size_t &out_size) override
 
Result SetOffset (const size_t offset, const fs::Position pos) override
 
Result GetOffset (size_t &out_offset) override
 
Result Read (void *read_buf, const size_t read_size, size_t &out_read_size) override
 
Result Write (const void *write_buf, const size_t write_size) override
 
Result Close () override
 

Public Attributes

NitroFile file
 
fs::BinaryFile base_bf
 
- Public Attributes inherited from ntr::fs::ExternalFsFileHandle< T >
std::shared_ptr< T > ext_fs_file
 
bool rw_from_ext_fs_file
 
std::string ext_fs_path
 
fs::BinaryFile ext_fs_bin_file
 

Member Function Documentation

◆ CloseImpl()

template<typename T >
Result ntr::fmt::nfs::NitroFsFileHandle< T >::CloseImpl ( )
inlineoverridevirtual

◆ ExistsImpl()

template<typename T >
bool ntr::fmt::nfs::NitroFsFileHandle< T >::ExistsImpl ( const std::string & path,
size_t & out_size )
inlineoverridevirtual

◆ GetOffsetImpl()

template<typename T >
Result ntr::fmt::nfs::NitroFsFileHandle< T >::GetOffsetImpl ( size_t & out_offset)
inlineoverridevirtual

◆ GetSizeImpl()

template<typename T >
Result ntr::fmt::nfs::NitroFsFileHandle< T >::GetSizeImpl ( size_t & out_size)
inlineoverridevirtual

◆ OpenImpl()

template<typename T >
Result ntr::fmt::nfs::NitroFsFileHandle< T >::OpenImpl ( const std::string & path)
inlineoverridevirtual

◆ ReadImpl()

template<typename T >
Result ntr::fmt::nfs::NitroFsFileHandle< T >::ReadImpl ( void * read_buf,
const size_t read_size,
size_t & out_read_size )
inlineoverridevirtual

◆ SetOffsetImpl()

template<typename T >
Result ntr::fmt::nfs::NitroFsFileHandle< T >::SetOffsetImpl ( const size_t offset,
const fs::Position pos )
inlineoverridevirtual

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