DataEncodingStrategy
public enum DataEncodingStrategyEnum representing the various strategies for encoding Datas.
As per the BSON specification, the default strategy is to encode Datas as BSON binary types with the generic
 binary subtype.
See also
bsonspec.org- 
                  
                  Encode the Databy deferring to its default encoding implementation.Note: The default encoding implementation attempts to encode the Dataas a[UInt8], but because BSON does not support integer types besidesInt32orInt64, it actually gets encoded to BSON as an[Int32]. This results in a space inefficient storage of theData(using 4 bytes of BSON storage per byte of data).DeclarationSwift case deferredToData
- 
                  
                  Encode the Dataas a BSON binary type (default).DeclarationSwift case binary
- 
                  
                  Encode the Dataas a base64 encoded string.DeclarationSwift case base64
- 
                  
                  Encode the Databy using the given closure. If the closure does not encode a value, an empty document will be encoded in its place.DeclarationSwift case custom((Data, Encoder) throws -> Void)
 View on GitHub
            View on GitHub
           Install in Dash
            Install in Dash
           DataEncodingStrategy Enumeration Reference
      DataEncodingStrategy Enumeration Reference