Bytes
public struct Bytes
-
Encode a
Data
toRSTaggedData
with a tag ofWellKnownTags
.bytes
Declaration
Swift
public static func encode(_ value: Data) -> RSTaggedData
Parameters
value
the
Data
value to encodeReturn Value
An
RSTaggedData
object with the encoded data -
Decode an
RSTaggedData
tagged withWellKnownTags
.bytes
to aData
Declaration
Swift
public static func decode(_ value: RSTaggedData) -> Data?
Parameters
value
RSTaggedData
contianing data tagged withWellKnownTags
.bytes
Return Value
The decoded
Data
ornil
if an error is encountered in the decoding process