Allow byte_stream->byte_slice conversion to shrink unused buffer space

This commit is contained in:
Lee Clagett 2020-10-13 15:09:18 +00:00
parent 83f1d863bd
commit 249eae5f4a
3 changed files with 24 additions and 6 deletions

View file

@ -112,7 +112,7 @@ namespace epee
explicit byte_slice(std::string&& buffer);
//! Convert `stream` into a slice with zero allocations.
explicit byte_slice(byte_stream&& stream) noexcept;
explicit byte_slice(byte_stream&& stream, bool shrink = true);
byte_slice(byte_slice&& source) noexcept;
~byte_slice() noexcept = default;