mirror of
https://onedev.site.tesses.net/tesses-framework
synced 2026-02-08 15:55:46 +00:00
Make streams and vfs and http shared_ptr
This commit is contained in:
@@ -4,12 +4,11 @@
|
||||
namespace Tesses::Framework::Streams
|
||||
{
|
||||
class ByteWriter {
|
||||
Stream* strm;
|
||||
bool owns;
|
||||
std::shared_ptr<Stream> strm;
|
||||
|
||||
public:
|
||||
Stream* GetStream();
|
||||
ByteWriter(Stream* strm, bool owns);
|
||||
ByteWriter(Stream& strm);
|
||||
std::shared_ptr<Stream> GetStream();
|
||||
ByteWriter(std::shared_ptr<Stream> strm);
|
||||
void WriteU8(uint8_t v);
|
||||
void WriteU16BE(uint16_t v);
|
||||
void WriteU16LE(uint16_t v);
|
||||
@@ -28,6 +27,5 @@ namespace Tesses::Framework::Streams
|
||||
void WriteF32LE(float v);
|
||||
void WriteF64BE(double v);
|
||||
void WriteF64LE(double v);
|
||||
~ByteWriter();
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user