Required Initializerswift-mongodb 0.27.0BSONABI
init(slicing:)
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.
BSON.BufferTraversable.swift:25init(slicing: ArraySlice<UInt8>) throws
The implementation may slice the argument, but should do so in O(1) time.
Other requirements
Type members
associatedtype Frame
The type specifying how parsers should interpret the conforming type’s inline frame header when it appears in raw input data.
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:)
.