Initializerswift-bson 0.3.1BSONABI
init(rawValue:)
Detects and normalizes a binary subtype from the given raw subtype code. Deprecated encodings (0x02
and 0x03
) will be normalized to their canonical encoding.
init?(rawValue: UInt8)
This initializer fails if rawValue
is a reserved bit pattern.