Required Instance Methodswift-bson 0.3.1BSONEncoding

encode(to:)

Populates a binary array from this instance by encoding to the parameter, possibly updating the array’s binary subtype as well.

BSONBinaryEncodable.swift:9
func encode(to bson: inout BSON.BinaryEncoder)

The implementation must not assume the encoding container is initially empty, because it may be the owner of the final output buffer.