Instance Methodswift-bson 0.3.1BSONABI
serialize(utf8:)
BSON.OutputStream.swift:37mutating func serialize(utf8: BSON.UTF8View<some BidirectionalCollection<UInt8>>)
mutating func serialize(utf8: BSON.UTF8View<some BidirectionalCollection<UInt8>>)
s7BSONABI4BSONO12OutputStreamPAAE9serialize4utf8yAC8UTF8ViewVy_qd__G_tSKRd__s5UInt8V7ElementRtd__lF
What are these?2FZY7
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 UTF8View<Bytes> where Bytes : BidirectionalCollection, Bytes.Element == UInt8
A BSON UTF-8 string. This string is allowed to contain null bytes.
protocol BidirectionalCollection<Element> : Collection where Self.Indices : BidirectionalCollection, Self.SubSequence : BidirectionalCollection
A collection that supports backward as well as forward traversal.
@frozen struct UInt8
An 8-bit unsigned integer value type.
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(list: BSON.List)