aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/string_utils/parse_size/parse_size.h
diff options
context:
space:
mode:
authorrisenberg <risenberg@yandex-team.ru>2022-02-10 16:49:47 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:47 +0300
commitec551e975caf33bd88e2803b55464cad608e2441 (patch)
treed2f84f5b97ecb84201832f831b261817be37fbfe /library/cpp/string_utils/parse_size/parse_size.h
parent6a705ee267e43301156c202a4b371d47ddd4dd4f (diff)
downloadydb-ec551e975caf33bd88e2803b55464cad608e2441.tar.gz
Restoring authorship annotation for <risenberg@yandex-team.ru>. Commit 1 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.h16
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 ad235ef02f..61db957b12 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);
-
-}
+
+}