diff options
author | antonovvk <antonovvk@yandex-team.ru> | 2022-02-10 16:47:51 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:51 +0300 |
commit | 37a63debdc21e372d99e1808cdd31aecf75018c3 (patch) | |
tree | fd84293fb9a1b16381dd6c1a5e14c78afacb8710 /util/generic/buffer.h | |
parent | 1fe621e70df847cc201ac942fe6d7804ea10508d (diff) | |
download | ydb-37a63debdc21e372d99e1808cdd31aecf75018c3.tar.gz |
Restoring authorship annotation for <antonovvk@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/buffer.h')
-rw-r--r-- | util/generic/buffer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util/generic/buffer.h b/util/generic/buffer.h index 9576467404..8523dfd160 100644 --- a/util/generic/buffer.h +++ b/util/generic/buffer.h @@ -70,11 +70,11 @@ public: inline char* Pos() noexcept { return Data_ + Pos_; } - + inline const char* Pos() const noexcept { return Data_ + Pos_; } - + /// Used space in bytes (do not mix with Capacity!) inline size_t Size() const noexcept { return Pos_; @@ -138,7 +138,7 @@ public: inline void Advance(size_t len) { Resize(Pos_ + len); } - + inline void Reserve(size_t len) { if (len > Len_) { DoReserve(len); |