Structureswift-bson 0.3.1BSONEncoding->BSONABI
BinaryEncoder
BSON.BinaryEncoder.swift:4@frozen struct BinaryEncoder
@frozen struct BinaryEncoder
import BSONEncoding
import BSONABI
Models the BSON type system and the binary interface of the BSON serialization format.
@frozen enum BSON
The namespace for all BSON types.
@frozen struct DocumentEncoder<CodingKey> where CodingKey : RawRepresentable, CodingKey.RawValue == String
@frozen struct ListEncoder
A type that can encode BSON list elements directly to an output buffer.
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Encoder<Frame>
protocol Escapable
protocol Sendable
init(_ output: consuming BSON.Output)
Creates a binary encoder by taking ownership the given output buffer, initializing the binary subtype to generic
.
static var frame: BSON.BinaryFrame { get }
var subtype: BSON.BinarySubtype { get set }
static func += (self: inout `Self`, bytes: some Sequence<UInt8>)
mutating func append(_ byte: UInt8)
consuming func move() -> BSON.Output
mutating func reserve(another bytes: Int)