encode(to:)

    Encodes this integer as a value of type int32 if it can be represented exactly, or int64 otherwise.

    Int (ext).swift:6
    func encode(to field: inout BSON.FieldEncoder)