diff options
author | denplusplus <denplusplus@yandex-team.ru> | 2022-02-10 16:47:34 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:34 +0300 |
commit | addb3626ed629a8c7d9c8c30e87365b478a8c266 (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /util/stream/buffer.cpp | |
parent | 57c20d143e8a438cd76b9fdc3ca2e8ee3ac1f32a (diff) | |
download | ydb-addb3626ed629a8c7d9c8c30e87365b478a8c266.tar.gz |
Restoring authorship annotation for <denplusplus@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/stream/buffer.cpp')
-rw-r--r-- | util/stream/buffer.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/util/stream/buffer.cpp b/util/stream/buffer.cpp index a5d5e75b48..2facece4ea 100644 --- a/util/stream/buffer.cpp +++ b/util/stream/buffer.cpp @@ -41,8 +41,8 @@ public: private: TBuffer& Data_; static constexpr size_t MinBufferGrowSize = 16; -}; - +}; + namespace { using TImpl = TBufferOutput::TImpl; @@ -58,14 +58,14 @@ namespace { TBufferOutput::TBufferOutput(size_t buflen) : Impl_(new TOwnedImpl(buflen)) -{ -} - +{ +} + TBufferOutput::TBufferOutput(TBuffer& buffer) : Impl_(new TImpl(buffer)) { -} - +} + TBufferOutput::TBufferOutput(TBufferOutput&&) noexcept = default; TBufferOutput& TBufferOutput::operator=(TBufferOutput&&) noexcept = default; @@ -85,8 +85,8 @@ void TBufferOutput::DoUndo(size_t len) { void TBufferOutput::DoWrite(const void* buf, size_t len) { Impl_->DoWrite(buf, len); -} - +} + void TBufferOutput::DoWriteC(char c) { Impl_->DoWriteC(c); } @@ -95,8 +95,8 @@ TBufferInput::TBufferInput(const TBuffer& buffer) : Buf_(buffer) , Readed_(0) { -} - +} + TBufferInput::~TBufferInput() = default; const TBuffer& TBufferInput::Buffer() const noexcept { |