Required Associated Typeswift-bson 0.3.1BSONABI

Frame

The type specifying how parsers should interpret the conforming type’s inline frame header when it appears in raw input data.

BSON.BufferTraversable.swift:16
associatedtype Frame : BSON.BufferFrame

Other requirements

Type members

  • 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.

Instance members

  • var bytes: ArraySlice<UInt8>

    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:).