Kotlin BSON • Multiplatform abstraction for different BSON implementations • opensavvy.ktmongo.bson • BsonContext • readDocument
readDocument¶
@LowLevelApi
abstract fun readDocument(bytes: ByteArray): Bson
Instantiates a new BSON document
by reading its bytes
representation.
The reverse operation is available as Bson.toByteArray
.