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

Public Member Functions

 SDATFileHandle (std::shared_ptr< SDAT > sdat)
 
const u32 GetFileOffset ()
 
const u32 GetFileSize ()
 
bool ExistsImpl (const std::string &path, size_t &out_size) override
 
Result OpenImpl (const std::string &path) override
 
Result GetSizeImpl (size_t &out_soze) override
 
Result SetOffsetImpl (const size_t offset, const fs::Position pos) override
 
Result GetOffsetImpl (size_t &out_offst) 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< SDAT >
 ExternalFsFileHandle (std::shared_ptr< SDAT > 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

u32 file_id
 
fs::BinaryFile base_bf
 
- Public Attributes inherited from ntr::fs::ExternalFsFileHandle< SDAT >
std::shared_ptr< SDAT > ext_fs_file
 
bool rw_from_ext_fs_file
 
std::string ext_fs_path
 
fs::BinaryFile ext_fs_bin_file
 

Member Function Documentation

◆ CloseImpl()

Result ntr::fmt::SDATFileHandle::CloseImpl ( )
overridevirtual

◆ ExistsImpl()

bool ntr::fmt::SDATFileHandle::ExistsImpl ( const std::string & path,
size_t & out_size )
overridevirtual

◆ GetOffsetImpl()

Result ntr::fmt::SDATFileHandle::GetOffsetImpl ( size_t & out_offst)
overridevirtual

◆ GetSizeImpl()

Result ntr::fmt::SDATFileHandle::GetSizeImpl ( size_t & out_soze)
overridevirtual

◆ OpenImpl()

Result ntr::fmt::SDATFileHandle::OpenImpl ( const std::string & path)
overridevirtual

◆ ReadImpl()

Result ntr::fmt::SDATFileHandle::ReadImpl ( void * read_buf,
const size_t read_size,
size_t & out_read_size )
overridevirtual

◆ SetOffsetImpl()

Result ntr::fmt::SDATFileHandle::SetOffsetImpl ( const size_t offset,
const fs::Position pos )
overridevirtual

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