DGDecoder

internal final class DGDecoder

A utility class for decoding data groups from ASN.1 encoded data.

See also

DataGroup and DGTag
  • Decodes a data group from ASN.1 encoded data.

    Throws

    An error if decoding the data group fails or if the data group tag is unknown.

    Declaration

    Swift

    internal static func decode(data: [UInt8]) throws -> DataGroup

    Parameters

    data

    The ASN.1 encoded data for the data group.

    Return Value

    The decoded data group instance.