diff options
| author | Alexander Fokin <[email protected]> | 2022-02-10 16:45:38 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:45:38 +0300 |
| commit | 863a59a65247c24db7cb06789bc5cf79d04da32f (patch) | |
| tree | 139dc000c8cd4a40f5659e421b7c75135d080307 /util/stream/mem.cpp | |
| parent | f64e95a9eb9ab03240599eb9581c5a9102426a96 (diff) | |
Restoring authorship annotation for Alexander Fokin <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/stream/mem.cpp')
| -rw-r--r-- | util/stream/mem.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/stream/mem.cpp b/util/stream/mem.cpp index 22a3339e274..c2c34dcc596 100644 --- a/util/stream/mem.cpp +++ b/util/stream/mem.cpp @@ -22,13 +22,13 @@ TMemoryInput::TMemoryInput(const TStringBuf buf) noexcept TMemoryInput::~TMemoryInput() = default; -size_t TMemoryInput::DoNext(const void** ptr, size_t len) { - len = Min(Len_, len); - - *ptr = Buf_; - Len_ -= len; - Buf_ += len; - return len; +size_t TMemoryInput::DoNext(const void** ptr, size_t len) { + len = Min(Len_, len); + + *ptr = Buf_; + Len_ -= len; + Buf_ += len; + return len; } void TMemoryInput::DoUndo(size_t len) { |
