|
@@ -33,6 +33,8 @@ public:
|
|
/// before the current write pointer and allows for reading already-read data.
|
|
/// before the current write pointer and allows for reading already-read data.
|
|
ErrorOr<Bytes> read_with_seekback(Bytes bytes, size_t distance);
|
|
ErrorOr<Bytes> read_with_seekback(Bytes bytes, size_t distance);
|
|
|
|
|
|
|
|
+ ErrorOr<void> copy_from_seekback(size_t distance, size_t length);
|
|
|
|
+
|
|
[[nodiscard]] size_t empty_space() const;
|
|
[[nodiscard]] size_t empty_space() const;
|
|
[[nodiscard]] size_t used_space() const;
|
|
[[nodiscard]] size_t used_space() const;
|
|
[[nodiscard]] size_t capacity() const;
|
|
[[nodiscard]] size_t capacity() const;
|