Kotlin BSON • Pure Kotlin Multiplatform implementation • opensavvy.ktmongo.bson.multiplatform • BsonArray
BsonArray¶
class BsonArray : BsonArray
Pure Kotlin BSON array implementation.
Implementation¶
Instead of decoding the BSON array into subdocuments, this class stores the raw bytes in BSON representation. Fields are decoded lazily when searched via the reader.
Because the reader is lazy, it is not thread-safe. If you want to use this instance without external synchronization, call eager.
Functions¶
eager¶
fun eager()
Scans this entire array recursively to find all the fields.
equals¶
hashCode¶
reader¶
@LowLevelApi
open override fun reader(): BsonArrayReader
toByteArray¶
@LowLevelApi
open override fun toByteArray(): ByteArray