XDREncoder
public class XDREncoder : @unchecked Sendable
extension XDREncoder: Encoder
The actual binary encoder class.
-
Undocumented
Declaration
Swift
public var data: [UInt8] -
Undocumented
Declaration
Swift
public init() -
Undocumented
Declaration
Swift
static func encode(_ value: XDREncodable) throws -> [UInt8] -
All errors which
See moreXDREncoderitself can throw.Declaration
Swift
enum Error : Swift.Error, @unchecked Sendable -
Undocumented
Declaration
Swift
func encode(_ value: Bool) throws -
Undocumented
Declaration
Swift
func encode(_ value: Float) -
Undocumented
Declaration
Swift
func encode(_ value: Double) -
Undocumented
Declaration
Swift
func encode(_ encodable: Encodable) throws -
Append the raw bytes of the parameter to the encoder’s data. No byte-swapping or other encoding is done.
Declaration
Swift
func appendBytes<T>(of: T) -
Declaration
Swift
public var codingPath: [CodingKey] { get } -
Declaration
Swift
public var userInfo: [CodingUserInfoKey : Any] { get } -
Declaration
Swift
public func container<Key>(keyedBy type: Key.Type) -> KeyedEncodingContainer<Key> where Key : CodingKey -
Declaration
Swift
public func unkeyedContainer() -> UnkeyedEncodingContainer -
Declaration
Swift
public func singleValueContainer() -> SingleValueEncodingContainer
View on GitHub
Install in Dash