Instance Methodswift-mongodb 0.27.0BSONABI
serialize(document:)
BSON.OutputStream.swift:51mutating func serialize(document: BSON.Document)
Other members in extension
Instance members
func serialize(binary: BSON.BinaryView<some RandomAccessCollection<UInt8>>
) func serialize(cString: String
) Serializes the UTF-8 code units of a string as a c-string with a trailing null byte. The
cString
must not contain null bytes. Useserialize(utf8:)
to serialize a string that contains interior null bytes.func serialize(integer: some FixedWidthInteger
) Serializes a fixed-width integer in little-endian byte order.
func serialize(list: BSON.List
) func serialize(utf8: BSON.UTF8View<some BidirectionalCollection<UInt8>>
)