Merge pull request #7005

249eae5 Allow byte_stream->byte_slice conversion to shrink unused buffer space (Lee Clagett)
This commit is contained in:
luigi1111 2021-03-20 01:35:13 -04:00
commit 7bf89dcbd3
No known key found for this signature in database
GPG key ID: F4ACA0183641E010
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;