aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/misc/guid.h
diff options
context:
space:
mode:
authorprime <prime@yandex-team.ru>2022-02-10 16:46:01 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:01 +0300
commite34f3f0e381020a427f44fbd50463d9a04089db3 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/yt/misc/guid.h
parent3695a7cd42b74a4987d8d5a8f2e2443556998943 (diff)
downloadydb-e34f3f0e381020a427f44fbd50463d9a04089db3.tar.gz
Restoring authorship annotation for <prime@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/yt/misc/guid.h')
-rw-r--r--library/cpp/yt/misc/guid.h56
1 files changed, 28 insertions, 28 deletions
diff --git a/library/cpp/yt/misc/guid.h b/library/cpp/yt/misc/guid.h
index e202e1e679..ec4ba3526a 100644
--- a/library/cpp/yt/misc/guid.h
+++ b/library/cpp/yt/misc/guid.h
@@ -9,39 +9,39 @@ namespace NYT {
////////////////////////////////////////////////////////////////////////////////
-//! TGuid is 16-byte value that might be interpreted as four little-endian 32-bit integers or two 64-bit little-endian integers.
-/*!
- * *-------------------------*-------------------------*
- * | Parts64[0] | Parts64[1] |
- * *------------*------------*------------*------------*
- * | Parts32[0] | Parts32[1] | Parts32[2] | Parts32[3] |
- * *------------*------------*------------*------------*
- * | 15..............................................0 |
- * *---------------------------------------------------*
- *
- * Note, that bytes are kept in memory in reverse order.
- *
- * Canonical text representation of guid consists of four base-16 numbers.
- * In text form, Parts32[3] comes first, and Parts32[0] comes last.
- *
- * For example:
- *
- * xxyyzzaa-0-1234-ff
- *
- * xx is byte [0]
- * yy is byte [1]
- * zz is byte [2]
- * 12 is byte [8]
- * 34 is byte [9]
- * ff is byte [15]
- */
+//! TGuid is 16-byte value that might be interpreted as four little-endian 32-bit integers or two 64-bit little-endian integers.
+/*!
+ * *-------------------------*-------------------------*
+ * | Parts64[0] | Parts64[1] |
+ * *------------*------------*------------*------------*
+ * | Parts32[0] | Parts32[1] | Parts32[2] | Parts32[3] |
+ * *------------*------------*------------*------------*
+ * | 15..............................................0 |
+ * *---------------------------------------------------*
+ *
+ * Note, that bytes are kept in memory in reverse order.
+ *
+ * Canonical text representation of guid consists of four base-16 numbers.
+ * In text form, Parts32[3] comes first, and Parts32[0] comes last.
+ *
+ * For example:
+ *
+ * xxyyzzaa-0-1234-ff
+ *
+ * xx is byte [0]
+ * yy is byte [1]
+ * zz is byte [2]
+ * 12 is byte [8]
+ * 34 is byte [9]
+ * ff is byte [15]
+ */
struct TGuid
{
union
{
ui32 Parts32[4];
ui64 Parts64[2];
- ui8 ReversedParts8[16];
+ ui8 ReversedParts8[16];
};
//! Constructs a null (zero) guid.
@@ -97,7 +97,7 @@ Y_DECLARE_PODTYPE(NYT::TGuid);
//! A hasher for TGuid.
template <>
-struct THash<NYT::TGuid>
+struct THash<NYT::TGuid>
{
size_t operator()(const NYT::TGuid& guid) const;
};