diff --git a/ASN1Decoder/ASN1Decoder.swift b/ASN1Decoder/ASN1Decoder.swift index 8bc68ee..a06e738 100644 --- a/ASN1Decoder/ASN1Decoder.swift +++ b/ASN1Decoder/ASN1Decoder.swift @@ -199,6 +199,7 @@ enum ASN1Error: Error { } extension Data { + public var uint64Value: UInt64? { guard count <= 8, !isEmpty else { // check if suitable for UInt64 return nil diff --git a/ASN1Decoder/ASN1Object.swift b/ASN1Decoder/ASN1Object.swift index 4511562..43e0f3b 100644 --- a/ASN1Decoder/ASN1Object.swift +++ b/ASN1Decoder/ASN1Object.swift @@ -33,7 +33,7 @@ public class ASN1Object: CustomStringConvertible { public var identifier: ASN1Identifier? - var sub: [ASN1Object]? + public internal(set) var sub: [ASN1Object]? public internal(set) weak var parent: ASN1Object?