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:
@@ -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