Boolean
public struct Boolean
-
Encodes a boolean value to an
RSTaggedData
with a tag ofWellKnownTags
.boolean
Declaration
Swift
public static func encode(_ value: Bool) -> RSTaggedData?
Parameters
value
the value to encode
Return Value
An
RSTaggedData
object with the encoded data ornil
if an error is encountered in the encoding process -
Decode an
RSTaggedData
tagged withWellKnownTags
.boolean
to aBool
Declaration
Swift
public static func decode(_ value: RSTaggedData) -> Bool?
Parameters
value
RSTaggedData
contianing data tagged withWellKnownTags
.boolean
Return Value
The decoded
Bool
ornil
if an error is encountered in the decoding process