diff options
Diffstat (limited to 'src/mongo/db/logical_time.h')
-rw-r--r-- | src/mongo/db/logical_time.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/logical_time.h b/src/mongo/db/logical_time.h index 2bc43bf54d4..4b982612183 100644 --- a/src/mongo/db/logical_time.h +++ b/src/mongo/db/logical_time.h @@ -59,6 +59,12 @@ public: std::string toString() const; /** + * Returns the LogicalTime as an array of unsigned chars in little endian order for use with the + * crypto::hmacSHA1 function. + */ + std::array<unsigned char, sizeof(uint64_t)> toUnsignedArray() const; + + /** * An uninitialized value of LogicalTime. Default constructed. */ static const LogicalTime kUninitialized; |