Instance Propertyswift-bson 0.3.1BSONABI
encountered
The number of bytes available in the input.
let encountered: Int
The number of bytes available in the input.
let encountered: Int
import BSONABI
Models the BSON type system and the binary interface of the BSON serialization format.
@frozen struct InputError
A parser did not receive the expected amount of input.
@frozen enum BSON
The namespace for all BSON types.
@frozen struct Int
A signed integer value type.
init(expected: Expectation, encountered: Int = 0)
var description: String { get }
let expected: Expectation
What the input should have yielded.
@frozen enum Expectation