Library Moduleswift-mongodb 0.23.3BSONABI

    BSONABI

    Models the BSON type system and the binary interface of the BSON serialization format.

    README.md
    import BSONABI

    Module information

    Declarations
    365
    Symbols
    470

    Coverage

    49.9 percent of the declarations in BSONABI are fully documented38.6 percent of the declarations in BSONABI are indirectly documented11.5 percent of the declarations in BSONABI are completely undocumented

    Declarations

    2.5 percent of the declarations in BSONABI are operators40.0 percent of the declarations in BSONABI are initializers, type members, or enum cases38.4 percent of the declarations in BSONABI are instance members1.1 percent of the declarations in BSONABI are instance subscripts1.9 percent of the declarations in BSONABI are protocols4.7 percent of the declarations in BSONABI are protocol requirements9.6 percent of the declarations in BSONABI are structures1.9 percent of the declarations in BSONABI are typealiases

    Interfaces

    100.0 percent of the declarations in BSONABI are unrestricted
    Module stats and coverage details

    External users should avoid importing this module directly. Instead, import BSON.

    Type system

    • enum AnyValue

      Any BSON value.

    • enum AnyType

      A BSON metatype. The raw value of this enumeration is the type code of the associated case in BSON’s ABI.

    Primitive types

    • struct Min

      The MongoDB min-key. This type has a single state, and is isomorphic to Void. It is mainly used by the decoding and encoding layers as an API landmark.

    • struct Max

      The MongoDB max-key. This type has a single state, and is isomorphic to Void. It is mainly used by the decoding and encoding layers as an API landmark.

    • struct Identifier

      A MongoDB object reference. This type models a MongoDB ObjectId.

    • struct Decimal128

      An opaque IEEE 754-2008 decimal.

    • struct Regex

      A MongoDB regex.

    • struct UnixMillisecond

      A low-precision instant in time, measured in milliseconds since the Unix epoch.

    String-like types

    Container types

    Container fields

    • struct Key

      A BSON field key. This type wraps a rawValue that is guaranteed to never contain null bytes. (Null bytes in a BSON field key can be exploited to perform SQL injection.)

    • struct FieldEncoder

      A type that can serialize any BSON container element.

    Binary interface

    • protocol BufferTraversable

      A framed type that BSON parsers can traverse in constant time.

    • protocol BufferFrame

      A type that augments a BufferFrameType conformance with a BSON metatype value. This is a derived protocol because it is sometimes useful to repurpose the BSON frame parsing machinery for additional (fictional) frame types that never appear in BSON data.

    Binary frame types

    • enum BinaryFrame

      Specifies the interpretation of a length header attached to a binary array.

    • enum DocumentFrame

      Specifies the interpretation of a length header attached to a document, or a list document.

    • enum UTF8Frame

      Specifies the interpretation of a length header attached to UTF-8 string.

    Parsing and decoding

    This module only implements the basic infrastructure for BSON decoding. Most of the public decoding interface is in BSONDecoding.

    Serialization and encoding

    This module only implements the basic infrastructure for BSON encoding. Most of the public encoding interface is in BSONEncoding.

    Uncategorized

    Protocols

    Types

    Other modules