diff options
author | antonovvk <antonovvk@yandex-team.ru> | 2022-02-10 16:47:52 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:52 +0300 |
commit | 37de222addabbef336dcaaea5f7c7645a629fc6d (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /util/generic/buffer.h | |
parent | 37a63debdc21e372d99e1808cdd31aecf75018c3 (diff) | |
download | ydb-37de222addabbef336dcaaea5f7c7645a629fc6d.tar.gz |
Restoring authorship annotation for <antonovvk@yandex-team.ru>. Commit 2 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 8523dfd160..9576467404 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); |