Allow you do explicitly close stream, vfs

This commit is contained in:
2025-09-29 03:53:54 -05:00
parent d785508571
commit 234ec372a4
19 changed files with 54 additions and 7 deletions

View File

@@ -39,7 +39,6 @@ namespace Tesses::Framework::Filesystem
void Chmod(VFSPath path, uint32_t mode);
};
extern std::shared_ptr<LocalFilesystem> LocalFS;
}

View File

@@ -94,6 +94,7 @@ namespace Tesses::Framework::Filesystem
VFSPath SystemToVFSPath(std::string path);
void GetDate(VFSPath path, Date::DateTime& lastWrite, Date::DateTime& lastAccess);
void SetDate(VFSPath path, Date::DateTime lastWrite, Date::DateTime lastAccess);
~MemoryFilesystem();
};
};

View File

@@ -57,5 +57,6 @@ namespace Tesses::Framework::Filesystem
void Chmod(VFSPath path, uint32_t mode);
void Close();
};
}

View File

@@ -153,5 +153,7 @@ namespace Tesses::Framework::Filesystem
virtual void Chmod(VFSPath path, uint32_t mode);
virtual ~VFS();
virtual void Close();
};
}

View File

@@ -20,6 +20,7 @@ namespace Tesses::Framework::Streams
size_t Write(const uint8_t* buff, size_t sz);
~BufferedStream();
void Close();
};
}

View File

@@ -23,6 +23,6 @@ namespace Tesses::Framework::Streams
void Flush();
void Seek(int64_t pos, SeekOrigin whence);
~FileStream();
void Close();
};
}

View File

@@ -17,6 +17,6 @@ namespace Tesses::Framework::Streams
int64_t GetLength();
int64_t GetPosition();
void Seek(int64_t pos, SeekOrigin whence);
void Close();
};
}

View File

@@ -53,5 +53,6 @@ namespace Tesses::Framework::Streams
static std::vector<std::pair<std::string,std::string>> GetIPs(bool ipV6=false);
~NetworkStream();
void SetNoDelay(bool noDelay);
void Close();
};
}

View File

@@ -25,5 +25,6 @@ namespace Tesses::Framework::Streams
void Resize(WindowSize sz);
WindowSize GetWindowSize();
~PtyStream();
void Close();
};
}

View File

@@ -24,6 +24,7 @@ namespace Tesses::Framework::Streams
virtual void Flush();
virtual void Seek(int64_t pos, SeekOrigin whence);
void CopyTo(std::shared_ptr<Stream> strm, size_t buffSize=1024);
virtual void Close();
virtual ~Stream();
};
}