encode(to:)

Encodes this integer as a value of type int64. It will always use the 64-bit representation, even if it would fit in a int32. To use a variable-length encoding, encode an Int instead.

Int64 (ext).swift:7
func encode(to field: inout BSON.FieldEncoder)