aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include
diff options
context:
space:
mode:
authorLee Clagett <code@leeclagett.com>2020-10-13 15:09:18 +0000
committerLee Clagett <code@leeclagett.com>2020-10-13 15:09:18 +0000
commit249eae5f4aad8c90e4e0eae19268fbf74fe05783 (patch)
treefd4672980a4090fb666f8c003799cfff64537bf9 /contrib/epee/include
parentMerge pull request #6927 (diff)
downloadmonero-249eae5f4aad8c90e4e0eae19268fbf74fe05783.tar.xz
Allow byte_stream->byte_slice conversion to shrink unused buffer space
Diffstat (limited to 'contrib/epee/include')
-rw-r--r--contrib/epee/include/byte_slice.h2
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;