Kotlin BSON • Multiplatform abstraction for different BSON implementations • opensavvy.ktmongo.bson.types • Timestamp • value
value¶
The raw value for this Timestamp
.
The first four bytes are a timestamp
, the last four as an increment
.
Note that this value is stored in big-endian representation, whereas the BSON specification represents timestamps in little-endian. Drivers using this type are expected to invert the endianness of this number. This implementation choice allows better sorting performance.