57 NitroFileSystemFile() : File(), file_ref(
nullptr) {}
58 NitroFileSystemFile(
NitroFile *file_ref) : File(), file_ref(file_ref) {}
63 inline bool IsValid() {
64 return this->file_ref !=
nullptr;
67 Result OpenImpl(
const fs::FileMode mode)
override;
69 inline Result GetSizeImpl(
size_t &out_size)
override {
70 TWL_R_TRY(this->file_ref->inner_file.GetSizeImpl(out_size));
74 inline Result SetOffsetImpl(
const size_t offset,
const fs::Whence whence)
override {
75 TWL_R_TRY(this->file_ref->inner_file.SetOffsetImpl(offset, whence));
79 inline Result GetOffsetImpl(
size_t &out_offset)
override {
80 TWL_R_TRY(this->file_ref->inner_file.GetOffsetImpl(out_offset));
84 inline Result ReadBufferImpl(
void *read_buf,
const size_t read_size)
override {
85 TWL_R_TRY(this->file_ref->inner_file.ReadBufferImpl(read_buf, read_size));
89 inline Result WriteBufferImpl(
const void *write_buf,
const size_t write_size)
override {
90 TWL_R_TRY(this->file_ref->inner_file.WriteBufferImpl(write_buf, write_size));
94 inline Result CloseImpl()
override {
95 TWL_R_TRY(this->file_ref->inner_file.CloseImpl());
Definition nfs_NitroFs.hpp:33