SteemEncoder
public class SteemEncoder
Encodes data into Steem binary format.
-
All errors which
See moreSteemEncoder
can throw.Declaration
Swift
public enum Error : Swift.Error
-
Data buffer holding the encoded bytes.
Note
Implementers ofSteemEncodable
can write directly into this.Declaration
Swift
public var data: Data
-
Create a new encoder.
Declaration
Swift
public init()
-
Convenience for creating an encoder, encoding a value and returning the data.
Declaration
Swift
public static func encode(_ value: SteemEncodable) throws -> Data
-
Encodes any
SteemEncodable
.Note
Platform specific integer typesInt
andUInt
are encoded as varints.Declaration
Swift
public func encode(_ value: Encodable) throws
-
Declaration
Swift
public var codingPath: [CodingKey] { get }
-
Declaration
Swift
public var userInfo: [CodingUserInfoKey : Any] { get }
-
Declaration
Swift
public func container<Key>(keyedBy _: Key.Type) -> KeyedEncodingContainer<Key> where Key : CodingKey
-
Declaration
Swift
public func unkeyedContainer() -> UnkeyedEncodingContainer
-
Declaration
Swift
public func singleValueContainer() -> SingleValueEncodingContainer