Skip to content

Kotlin BSON • Multiplatform abstraction for different BSON implementationsopensavvy.ktmongo.bsonBsonArray

BsonArray

interface BsonArray

A BSON array.

To create instances of this class, see BsonContext.buildArray.

Functions

reader

@LowLevelApi
abstract fun reader(): BsonArrayReader

Reads the elements of this array.

toByteArray

abstract fun toByteArray(): ByteArray

Low-level byte representation of this BSON document.

toString

abstract override fun toString(): String

JSON representation of this BsonArray, as a String.