diff options
author | Lee Clagett <code@leeclagett.com> | 2020-10-13 15:09:18 +0000 |
---|---|---|
committer | Lee Clagett <code@leeclagett.com> | 2020-10-13 15:09:18 +0000 |
commit | 249eae5f4aad8c90e4e0eae19268fbf74fe05783 (patch) | |
tree | fd4672980a4090fb666f8c003799cfff64537bf9 /contrib/epee/include/byte_slice.h | |
parent | Merge pull request #6927 (diff) | |
download | monero-249eae5f4aad8c90e4e0eae19268fbf74fe05783.tar.xz |
Allow byte_stream->byte_slice conversion to shrink unused buffer space
Diffstat (limited to '')
-rw-r--r-- | contrib/epee/include/byte_slice.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/epee/include/byte_slice.h b/contrib/epee/include/byte_slice.h index 6b79f6d92..18d60e088 100644 --- a/contrib/epee/include/byte_slice.h +++ b/contrib/epee/include/byte_slice.h @@ -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; |