diff options
author | risenberg <risenberg@yandex-team.ru> | 2022-02-10 16:49:48 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:48 +0300 |
commit | 99ac40630808727955ac0448822228528f1ea92d (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/string_utils/parse_size/parse_size.h | |
parent | ec551e975caf33bd88e2803b55464cad608e2441 (diff) | |
download | ydb-99ac40630808727955ac0448822228528f1ea92d.tar.gz |
Restoring authorship annotation for <risenberg@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/string_utils/parse_size/parse_size.h')
-rw-r--r-- | library/cpp/string_utils/parse_size/parse_size.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/string_utils/parse_size/parse_size.h b/library/cpp/string_utils/parse_size/parse_size.h index 61db957b12..ad235ef02f 100644 --- a/library/cpp/string_utils/parse_size/parse_size.h +++ b/library/cpp/string_utils/parse_size/parse_size.h @@ -2,9 +2,9 @@ #include <util/generic/strbuf.h> -namespace NSize { +namespace NSize { ui64 ParseSize(TStringBuf size); - + // Convenient disk size representation with string parsing and integer comparison class TSize { public: @@ -12,22 +12,22 @@ namespace NSize { : Value(value) { } - + ui64 GetValue() const { return Value; } - + operator ui64() const { return Value; } - + private: ui64 Value; }; - + TSize FromKiloBytes(ui64 value); TSize FromMegaBytes(ui64 value); TSize FromGigaBytes(ui64 value); TSize FromTeraBytes(ui64 value); - -} + +} |