Initializerswift-bson 0.3.1BSONABI
init(slicing:)
Stores the argument in bytes
unchanged. Equivalent to init(bytes:)
.
init(slicing bytes: Bytes) throws
Stores the argument in bytes
unchanged. Equivalent to init(bytes:)
.
init(slicing bytes: Bytes) throws
s7BSONABI4BSONO8UTF8ViewVAAs10ArraySliceVys5UInt8VGRszrlE7slicingAEy_AJGAJ_tKcfc
What are these?6WNCA
where Bytes == ArraySlice<UInt8>
import BSONABI
Models the BSON type system and the binary interface of the BSON serialization format.
@frozen struct UTF8View<Bytes> where Bytes : BidirectionalCollection, Bytes.Element == UInt8
A BSON UTF-8 string. This string is allowed to contain null bytes.
@frozen enum BSON
The namespace for all BSON types.
let bytes: Bytes
The UTF-8 code units backing this string. This collection does not include the trailing null byte that typically appears when this value occurs inline in a document.
init(bytes: Bytes)
@frozen struct ArraySlice<Element>
A slice of an Array
, ContiguousArray
, or ArraySlice
instance.
init(_ string: StaticString)
Creates a BSON UTF-8 string backed by a [UInt8]
array slice, by copying the UTF-8 code units stored in the given static string.
typealias Frame = BSON.UTF8Frame