readArray

Instantiates a new BSON array by reading its bytes representation.

The reverse operation is available as BsonArray.toByteArray.


open fun readArray(array: BsonArray): BsonArray(source)

Returns a BsonArray that is tied to this factory, that represents the same data as array.

This method is useful when you need to convert from a different BsonArray implementation to the one returned by this factory. For example, if you have a BsonArray from the Multiplatform driver and you want to convert it to one from the official driver.

The returned array may be referentially identical to array if array was already produced by this factory.

The returned array may share memory with array.