Kotlin BSON • Multiplatform abstraction for different BSON implementations • opensavvy.ktmongo.bson.types • ObjectId • bytes
bytes
Generates a byte representation of this ObjectId instance.
Because ByteArray is mutable, each access will generate a new array.
The output array can be passed to the ObjectId constructor to obtain a new identical ObjectId instance.