SwiftclassCBORLibrary

class CBORLibrary.CBOREncoder

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

inherits{}

Members 10

  1. deinitdeinit
  2. fieldvar dateEncodingStrategy: CBORLibrary.CBOREncoder.DateEncodingStrategy+0x20
  3. fieldvar dictionaryEncodingStrategy: CBORLibrary.CBOREncoder.DictionaryEncodingStrategy+0x18
  4. fieldvar userInfo: [CodingUserInfoKey : Any]+0x10
  5. funcencode<A where A: Encodable>(A) throws -> Foundation.Data
  6. funcencode<A where A: Encodable>(_: A, tag: Int) throws -> Foundation.Data
  7. funcencodeToCBOR<A where A: Encodable>(_: A, tag: Int?) throws -> CBOR
  8. initCBORLibrary.CBOREncoder.__allocating_init(userInfo: [CodingUserInfoKey : Any], dictionaryEncodingStrategy: CBORLibrary.CBOREncoder.DictionaryEncodingStrategy, dateEncodingStrategy: CBORLibrary.CBOREncoder.DateEncodingStrategy) -> CBORLibrary.CBOREncoder
  9. initCBORLibrary.CBOREncoder.__allocating_init() -> CBORLibrary.CBOREncoder
  10. typealiastypealias Output = Foundation.Data
class CBOREncoder {
    enum DictionaryEncodingStrategy {
        indirect case explicitKeyOrdering(fallback: CBORLibrary.CBOREncoder.DictionaryEncodingStrategy)
        case codingKeysOrder
        case alphanumericalOrder
        case coreDeterministicOrdering
        case oldCanonicalOrdering
    }
    enum DateEncodingStrategy {
        case fulldate
        case dateTime
    }
    var userInfo: [Swift.CodingUserInfoKey : Any]
    var dictionaryEncodingStrategy: CBORLibrary.CBOREncoder.DictionaryEncodingStrategy
    var dateEncodingStrategy: CBORLibrary.CBOREncoder.DateEncodingStrategy

    init()
    init(userInfo: [Swift.CodingUserInfoKey : Any], dictionaryEncodingStrategy: CBORLibrary.CBOREncoder.DictionaryEncodingStrategy, dateEncodingStrategy: CBORLibrary.CBOREncoder.DateEncodingStrategy)
    func encode<A>(_: A) throws -> Foundation.Data where A: Swift.Encodable
    func encode<A>(_: A, tag: Swift.Int) throws -> Foundation.Data where A: Swift.Encodable
    func encodeToCBOR<A>(_: A, tag: Swift.Int?) throws -> __C.CBOR where A: Swift.Encodable

    deinit
}