aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream/mem.h
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /util/stream/mem.h
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
downloadydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/stream/mem.h')
-rw-r--r--util/stream/mem.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/stream/mem.h b/util/stream/mem.h
index 18a5d46772..bde672528d 100644
--- a/util/stream/mem.h
+++ b/util/stream/mem.h
@@ -13,7 +13,7 @@
/**
* Input stream that reads data from a memory block.
*/
-class TMemoryInput: public IZeroCopyInputFastReadTo {
+class TMemoryInput: public IZeroCopyInputFastReadTo {
public:
TMemoryInput() noexcept;
@@ -26,11 +26,11 @@ public:
* @param len Size of the memory block.
*/
TMemoryInput(const void* buf, size_t len) noexcept;
- explicit TMemoryInput(const TStringBuf buf) noexcept;
+ explicit TMemoryInput(const TStringBuf buf) noexcept;
~TMemoryInput() override;
TMemoryInput(const TMemoryInput& other) noexcept
- : IZeroCopyInputFastReadTo()
+ : IZeroCopyInputFastReadTo()
, Buf_(other.Buf_)
, Len_(other.Len_)
{
@@ -89,10 +89,10 @@ public:
*
* @param stream Zero copy stream to initialize from.
*/
- void Fill(IZeroCopyInput* stream) {
+ void Fill(IZeroCopyInput* stream) {
Len_ = stream->Next(&Buf_);
if (!Len_) {
- Reset(nullptr, 0);
+ Reset(nullptr, 0);
}
}
@@ -229,7 +229,7 @@ public:
* this stream uses.
*/
void SetPos(char* ptr) {
- Y_ASSERT(Beg_ <= ptr);
+ Y_ASSERT(Beg_ <= ptr);
SetPosImpl(ptr);
}
@@ -244,7 +244,7 @@ public:
protected:
void SetPosImpl(char* ptr) {
- Y_ASSERT(End_ >= ptr);
+ Y_ASSERT(End_ >= ptr);
Buf_ = ptr;
}