Instance Methodswift-bson 0.3.1BSONABI
serialize(list:)
BSON.OutputStream.swift:58mutating func serialize(list: BSON.List)
mutating func serialize(list: BSON.List)
s7BSONABI4BSONO12OutputStreamPAAE9serialize4listyAC4ListV_tF
What are these?5PSD
import BSONABI
Models the BSON type system and the binary interface of the BSON serialization format.
protocol OutputStream
@frozen enum BSON
The namespace for all BSON types.
@frozen struct List
mutating func serialize(binary: BSON.BinaryView<some RandomAccessCollection<UInt8>>)
mutating 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. Use serialize(utf8:)
to serialize a string that contains interior null bytes.
mutating func serialize(document: BSON.Document)
mutating func serialize(integer: some FixedWidthInteger)
Serializes a fixed-width integer in little-endian byte order.
mutating func serialize(utf8: BSON.UTF8View<some BidirectionalCollection<UInt8>>)