Instance Propertyswift-bson 0.3.1BSONABI
size
The size of this binary array when encoded with its header. This is not the length encoded in the header itself.
var size: Int { get }
The size of this binary array when encoded with its header. This is not the length encoded in the header itself.
var size: Int { get }
where Bytes:RandomAccessCollection, Bytes.Element == UInt8
import BSONABI
Models the BSON type system and the binary interface of the BSON serialization format.
@frozen struct BinaryView<Bytes> where Bytes : RandomAccessCollection, Bytes.Element == UInt8
A BSON binary array.
@frozen enum BSON
The namespace for all BSON types.
@frozen struct Int
A signed integer value type.
protocol RandomAccessCollection<Element> : BidirectionalCollection where Self.Indices : RandomAccessCollection, Self.SubSequence : RandomAccessCollection
A collection that supports efficient random-access index traversal.
@frozen struct UInt8
An 8-bit unsigned integer value type.
var header: Int32 { get }
The length that would be encoded in this binary array’s prefixed header. Equal to self.bytes.count
.
static func == (lhs: `Self`, rhs: BSON.BinaryView<some RandomAccessCollection<UInt8>>) -> Bool
Performs an exact byte-wise comparison on two binary arrays. The subtypes must match as well.