Skip to content

Kotlin BSON • Multiplatform abstraction for different BSON implementationsopensavvy.ktmongo.bson.typesTimestampvalue

value

val value: ULong

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.