mirror of
https://onedev.site.tesses.net/tesses-framework
synced 2026-02-08 15:55:46 +00:00
Allow you do explicitly close stream, vfs
This commit is contained in:
@@ -39,7 +39,6 @@ namespace Tesses::Framework::Filesystem
|
||||
|
||||
void Chmod(VFSPath path, uint32_t mode);
|
||||
|
||||
|
||||
};
|
||||
extern std::shared_ptr<LocalFilesystem> LocalFS;
|
||||
}
|
||||
@@ -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();
|
||||
};
|
||||
};
|
||||
@@ -57,5 +57,6 @@ namespace Tesses::Framework::Filesystem
|
||||
|
||||
void Chmod(VFSPath path, uint32_t mode);
|
||||
|
||||
void Close();
|
||||
};
|
||||
}
|
||||
@@ -153,5 +153,7 @@ namespace Tesses::Framework::Filesystem
|
||||
virtual void Chmod(VFSPath path, uint32_t mode);
|
||||
|
||||
virtual ~VFS();
|
||||
|
||||
virtual void Close();
|
||||
};
|
||||
}
|
||||
@@ -20,6 +20,7 @@ namespace Tesses::Framework::Streams
|
||||
size_t Write(const uint8_t* buff, size_t sz);
|
||||
|
||||
~BufferedStream();
|
||||
void Close();
|
||||
};
|
||||
|
||||
}
|
||||
@@ -23,6 +23,6 @@ namespace Tesses::Framework::Streams
|
||||
void Flush();
|
||||
void Seek(int64_t pos, SeekOrigin whence);
|
||||
~FileStream();
|
||||
|
||||
void Close();
|
||||
};
|
||||
}
|
||||
@@ -17,6 +17,6 @@ namespace Tesses::Framework::Streams
|
||||
int64_t GetLength();
|
||||
int64_t GetPosition();
|
||||
void Seek(int64_t pos, SeekOrigin whence);
|
||||
|
||||
void Close();
|
||||
};
|
||||
}
|
||||
@@ -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();
|
||||
};
|
||||
}
|
||||
@@ -25,5 +25,6 @@ namespace Tesses::Framework::Streams
|
||||
void Resize(WindowSize sz);
|
||||
WindowSize GetWindowSize();
|
||||
~PtyStream();
|
||||
void Close();
|
||||
};
|
||||
}
|
||||
@@ -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();
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user