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

Public Member Functions

 ExternalFsFileHandle (std::shared_ptr< T > ext_fs_file)
 
virtual bool ExistsImpl (const std::string &path, size_t &out_size)=0
 
virtual Result OpenImpl (const std::string &path)=0
 
virtual Result GetSizeImpl (size_t &out_offset)=0
 
virtual Result SetOffsetImpl (const size_t offset, const fs::Position pos)=0
 
virtual Result GetOffsetImpl (size_t &out_offset)=0
 
virtual Result ReadImpl (void *read_buf, const size_t read_size, size_t &out_read_size)=0
 
virtual Result CloseImpl ()=0
 
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

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

◆ Close()

template<typename T >
Result ntr::fs::ExternalFsFileHandle< T >::Close ( )
inlineoverridevirtual

Implements ntr::fs::FileHandle.

◆ Exists()

template<typename T >
bool ntr::fs::ExternalFsFileHandle< T >::Exists ( const std::string & path,
size_t & out_size )
inlineoverridevirtual

Implements ntr::fs::FileHandle.

◆ GetOffset()

template<typename T >
Result ntr::fs::ExternalFsFileHandle< T >::GetOffset ( size_t & out_offset)
inlineoverridevirtual

Implements ntr::fs::FileHandle.

◆ GetSize()

template<typename T >
Result ntr::fs::ExternalFsFileHandle< T >::GetSize ( size_t & out_size)
inlineoverridevirtual

Implements ntr::fs::FileHandle.

◆ Open()

template<typename T >
Result ntr::fs::ExternalFsFileHandle< T >::Open ( const std::string & path,
const fs::OpenMode mode )
inlineoverridevirtual

Implements ntr::fs::FileHandle.

◆ Read()

template<typename T >
Result ntr::fs::ExternalFsFileHandle< T >::Read ( void * read_buf,
const size_t read_size,
size_t & out_read_size )
inlineoverridevirtual

Implements ntr::fs::FileHandle.

◆ SetOffset()

template<typename T >
Result ntr::fs::ExternalFsFileHandle< T >::SetOffset ( const size_t offset,
const fs::Position pos )
inlineoverridevirtual

Implements ntr::fs::FileHandle.

◆ Write()

template<typename T >
Result ntr::fs::ExternalFsFileHandle< T >::Write ( const void * write_buf,
const size_t write_size )
inlineoverridevirtual

Implements ntr::fs::FileHandle.


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