Frame
The type specifying how parsers should interpret the conforming type’s inline frame header when it appears in raw input data.
associatedtype Frame : BSON.BufferFrame
The type specifying how parsers should interpret the conforming type’s inline frame header when it appears in raw input data.
associatedtype Frame : BSON.BufferFrame
import BSONABI
Models the BSON type system and the binary interface of the BSON serialization format.
protocol BufferTraversable
A framed type that BSON parsers can traverse in constant time.
@frozen enum BSON
The namespace for all BSON types.
protocol BufferFrame : BSON.BufferFrameType
A type that augments a BufferFrameType
conformance with a BSON metatype value. This is a derived protocol because it is sometimes useful to repurpose the BSON frame parsing machinery for additional (fictional) frame types that never appear in BSON data.
init(slicing: ArraySlice<UInt8>) throws
Receives a collection of bytes encompassing the bytes backing this value, after stripping the length header and frame suffix, but keeping any portions of the frame prefix that are not part of the length header.
var bytes: ArraySlice<UInt8> { get }
The slice of bytes constituting the opaque content of this view. The conforming type defines what portion of the original buffer this slice includes, and it may not cover the entirety of the argument originally passed to init(slicing:)
.