Instance Propertyswift-bson 0.3.1BSONABI
header
The length that would be encoded in this string’s prefixed header. Equal to self.slice.count + 1
.
var header: Int32 { get }
The length that would be encoded in this string’s prefixed header. Equal to self.slice.count + 1
.
var header: Int32 { get }
where Bytes:BidirectionalCollection, Bytes.Element == 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.
@frozen struct Int32
A 32-bit signed integer value type.
protocol BidirectionalCollection<Element> : Collection where Self.Indices : BidirectionalCollection, Self.SubSequence : BidirectionalCollection
A collection that supports backward as well as forward traversal.
@frozen struct UInt8
An 8-bit unsigned integer value type.
var description: String { get }
Copies and validates the backing storage of the given UTF-8 string to a native Swift string, repairing invalid code units if needed.
var size: Int { get }
The size of this string when encoded with its header and trailing null byte. This is not the length encoded in the header itself.
static func == (lhs: `Self`, rhs: BSON.UTF8View<some BidirectionalCollection<UInt8>>) -> Bool
Performs a unicode-aware string comparison on two UTF-8 strings.