Remove C++ I/O streams

This commit is contained in:
topjohnwu
2025-05-01 11:04:23 -07:00
committed by John Wu
parent 78d1200608
commit dc0acea47c
8 changed files with 20 additions and 362 deletions
-5
View File
@@ -147,17 +147,12 @@ struct byte_data : public byte_view {
rust::Vec<size_t> patch(byte_view from, byte_view to);
};
class byte_stream;
struct heap_data : public byte_data {
ALLOW_MOVE_ONLY(heap_data)
heap_data() = default;
explicit heap_data(size_t sz) : byte_data(calloc(sz, 1), sz) {}
~heap_data() { free(_buf); }
// byte_stream needs to reallocate the internal buffer
friend byte_stream;
};
struct owned_fd {