123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101module juptune.asn1.decode.bcd.encoding;
enum Asn1DecodeError : int
{
///
none = 0,
/// Ran out of bytes.
eof = 1,
/// Functionality not implemented yet TODO: I need to replace some asserts with this.
notImplemented = 2,
/// Identifier tag has too many bytes.
identifierTagTooLong = 3,
/// Identifer violates the spec in some way.
identifierTagInvalidEncoding = 4,
/// Content length uses a reserved value.
componentLengthReserved = 5,
/// Content length uses the indefinite form under DER, which is not allowed.
componentLengthIndefiniteUnderDer = 6,
/// Content length violates a DER-specific constraint.
componentLengthInvalidDerEncoding = 7,
/// Content length is more than 64-bits, so can't be represented natively.
componentLengthOver64Bits = 8,
/// Boolean violates the spec in some way.
booleanInvalidEncoding = 9,
/// Boolean violates a DER-specific constraint.
booleanInvalidDerEncoding = 10,
/// Boolean is marked as constructed.
booleanIsConstructed = 11,
/// Integer violates the spec in some way.
integerInvalidEncoding = 12,
/// Integer violates a DER-specific constraint.
integerInvalidDerEncoding = 13,
/// Integer is too large to be represented by a native D integral type.
integerOverBits = 14,
/// Integer is marked as constructed.
integerIsConstructed = 15,
/// Bit string is marked as constructed under DER, which is not allowed.
bitstringIsConstructedUnderDer = 16,
/// Bit string violates the spec in some way.
bitstringInvalidEncoding = 17,
/// Bit string violates a DER-specific constraint.
bitstringInvalidDerEncoding = 18,
/// Real is marked as constructed.
realIsConstructed = 19,
/// Real violates the spec in some way.
realInvalidEncoding = 20,
/// Real violates a DER-specific constraint.
realInvalidDerEncoding = 21,
/// Real contains an unrecognised decimal encoding.
realUnsupportedDecimalEncoding = 22,
/// Real contains an unrecognised special value.
realUnsupportedSpecialEncoding = 23,
/// Octet string is marked as constructed under DER, which is not allowed.
octetstringIsConstructedUnderDer = 24,
/// Null is marked as constructed under DER, which is not allowed.
nullIsConstructed = 25,
/// Null contains content bytes.
nullHasContentBytes = 26,
/// Generic construction is marked as primitive.
constructionIsPrimitive = 27,
/// Generic primitive is marked as constructed.
primitiveIsConstructed = 28,
/// Set of is marked as primitive.
setOfIsPrimitive = 29,
/// A DER-encoded SET OF is not properly encoded - elements must be encoded in 'shortest' order, but wasn't.
setOfDerIsUnordered = 30,
/// OID violates the spec in some way.
oidInvalidEncoding = 31,
/// OID is marked as constructed.
oidIsConstructed = 32,
/// A UTF8String was marked as constructed under DER, which is not allowed.
utf8StringIsConstructedUnderDer = 33,
/// A PrintableString was marked as constructed under DER, which is not allowed.
printableStringIsConstructedUnderDer = 34,
/// A PrintableString contains characters that are not allowed.
printableStringHasInvalidChars = 35,
/// A UTCTime was marked as constructed under DER, which is not allowed.
utcTimeIsConstructedUnderDer = 36,
/// A UTCTime literal is not the right size.
utcTimeIsWrongSize = 37,
/// A UTCTime literal was given a timezone under DER, which is not allowed.
utcTimeHasTimezoneUnderDer = 38,
/// A UTCTime literal is invalid for some non-specific reason (e.g. invalid characters).
utcTimeInvalidLiteral = 39,
/// An identifier has a class that was unexpected for the decoding type.
identifierHasInvalidClass = 40,
/// An identifier has a tag value that was unexpected for the decoding type.
identifierHasInvalidTag = 41,
/// An CHOICE type is unable to select a value while decoding the data stream.
choiceHasNoMatch = 42,
/// A SEQUENCE type is missing a non-optional field.
sequenceMissingField = 43,
/// A non-extensible SEQUENCE type has unread content bytes after attempted decoding of all known fields.
sequenceHasExtraData = 44,
/// A SET type is missing a non-optional field.
setMissingField = 45,
/// A non-extensible SET type has unread content bytes after attempted decoding of all known fields.
setHasExtraData = 46,
/// A value was decoded that did not match a constraint from the source schema
constraintFailed = 47
}
A Resulterror enum.