diff options
author | luigi1111 <luigi1111w@gmail.com> | 2021-03-20 01:35:13 -0400 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2021-03-20 01:35:13 -0400 |
commit | 7bf89dcbd3352d3837da7056bbf0469ed1bec374 (patch) | |
tree | 1b526094852f503b7e5643d29024dd0ab158b319 /contrib/epee/include | |
parent | Merge pull request #6810 (diff) | |
parent | Allow byte_stream->byte_slice conversion to shrink unused buffer space (diff) | |
download | monero-7bf89dcbd3352d3837da7056bbf0469ed1bec374.tar.xz |
Merge pull request #7005
249eae5 Allow byte_stream->byte_slice conversion to shrink unused buffer space (Lee Clagett)
Diffstat (limited to 'contrib/epee/include')
-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; |