SwiftclassCBORLibrary
class CBORLibrary.CBOREncoder
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolCombine.TopLevelEncoder
Members 10
- deinit
deinit - field
var dateEncodingStrategy: CBORLibrary.CBOREncoder.DateEncodingStrategy+0x20 - field
var dictionaryEncodingStrategy: CBORLibrary.CBOREncoder.DictionaryEncodingStrategy+0x18 - field
var userInfo: [CodingUserInfoKey : Any]+0x10 - func
encode<A where A: Encodable>(A) throws -> Foundation.Data - func
encode<A where A: Encodable>(_: A, tag: Int) throws -> Foundation.Data - func
encodeToCBOR<A where A: Encodable>(_: A, tag: Int?) throws -> CBOR - init
CBORLibrary.CBOREncoder.__allocating_init(userInfo: [CodingUserInfoKey : Any], dictionaryEncodingStrategy: CBORLibrary.CBOREncoder.DictionaryEncodingStrategy, dateEncodingStrategy: CBORLibrary.CBOREncoder.DateEncodingStrategy) -> CBORLibrary.CBOREncoder - init
CBORLibrary.CBOREncoder.__allocating_init() -> CBORLibrary.CBOREncoder - typealias
typealias Output = Foundation.Data
Header
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 }