XDRDecoder
public class XDRDecoder : @unchecked Sendable
extension XDRDecoder: Decoder
The actual binary decoder class.
-
Undocumented
Declaration
Swift
public init(data: [UInt8]) -
Undocumented
Declaration
Swift
public init(data: Data) -
Undocumented
Declaration
Swift
static func decode<T>(_ type: T.Type, data: [UInt8]) throws -> T where T : XDRDecodable -
Undocumented
Declaration
Swift
static func decode<T>(_ type: T.Type, data: Data) throws -> T where T : XDRDecodable -
All errors which
See moreXDRDecoderitself can throw.Declaration
Swift
enum Error : Swift.Error, @unchecked Sendable -
Undocumented
Declaration
Swift
func decode(_ type: Bool.Type) throws -> Bool -
Undocumented
Declaration
Swift
func decode(_ type: Float.Type) throws -> Float -
Undocumented
Declaration
Swift
func decode(_ type: Double.Type) throws -> Double -
Undocumented
Declaration
Swift
func decode<T>(_ type: T.Type) throws -> T where T : Decodable -
Read the appropriate number of raw bytes directly into the given value. No byte swapping or other postprocessing is done.
Declaration
Swift
func read<T>(into: inout T) throws -
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) throws -> KeyedDecodingContainer<Key> where Key : CodingKey -
Declaration
Swift
public func unkeyedContainer() throws -> UnkeyedDecodingContainer -
Declaration
Swift
public func singleValueContainer() throws -> SingleValueDecodingContainer
View on GitHub
Install in Dash