EUDCCDecoder
public struct EUDCCDecoder
A EUDCC Decoder
-
Creates a new instance of
EUDCCDecoderDeclaration
Swift
public init( eudccPrefix: String = "HC1:", eudccJSONDecoder: JSONDecoder = .init() )Parameters
eudccPrefixThe EUDCC Prefix. Default value
HC1:eudccJSONDecoderThe EUDCC JSONDecoder. Default value
.init()
-
Decode EUDCC from EUDCC Base-45 encoded
DataDeclaration
Swift
func decode( from base45EncodedData: Data ) -> Result<EUDCC, DecodingError>Parameters
base45EncodedDataThe EUDCC Base-45 encoded
DataReturn Value
A Result contains either the successfully decoded EUDCC or an DecodingError
-
Decode EUDCC from EUDCC Base-45 encoded
StringDeclaration
Swift
func decode( from base45EncodedString: String ) -> Result<EUDCC, DecodingError>Parameters
base45EncodedStringThe EUDCC Base-45 encoded
StringReturn Value
A Result contains either the successfully decoded EUDCC or an DecodingError
EUDCCDecoder Structure Reference