aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2024-12-23 10:45:08 -0500
committerluigi1111 <luigi1111w@gmail.com>2024-12-23 10:45:08 -0500
commit560c69b304da71b3c745006deaaab74a8ad103ad (patch)
tree8a86b20230d02e8e9a0b57be8ca6d4280ac39916 /contrib
parent8def48e79e99cb7f87115f55054d47233ba4ad8d (diff)
parent3f3229a9a772bb1e0b421a3f20064957e56042b7 (diff)
downloadmonzero-core-560c69b304da71b3c745006deaaab74a8ad103ad.tar.gz
monzero-core-560c69b304da71b3c745006deaaab74a8ad103ad.tar.xz
monzero-core-560c69b304da71b3c745006deaaab74a8ad103ad.zip
Merge pull request #9530
3f3229a Add byte_stream alue_type and data() (Lee *!* Clagett)
Diffstat (limited to 'contrib')
-rw-r--r--contrib/epee/include/byte_stream.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/epee/include/byte_stream.h b/contrib/epee/include/byte_stream.h
index e7993133a..ec9e5cbca 100644
--- a/contrib/epee/include/byte_stream.h
+++ b/contrib/epee/include/byte_stream.h
@@ -74,6 +74,7 @@ namespace epee
public:
using char_type = std::uint8_t;
using Ch = char_type;
+ using value_type = char_type;
//! Increase internal buffer by at least `byte_stream_increase` bytes.
byte_stream() noexcept
@@ -86,6 +87,7 @@ namespace epee
~byte_stream() noexcept = default;
byte_stream& operator=(byte_stream&& rhs) noexcept;
+ std::uint8_t* data() noexcept { return buffer_.get(); }
const std::uint8_t* data() const noexcept { return buffer_.get(); }
std::uint8_t* tellp() const noexcept { return next_write_; }
std::size_t available() const noexcept { return end_ - next_write_; }