const class asn1::AsnObj
sys::Obj asn1::AsnObj
A tagged ASN.1 value
- bigInt
-
BigInt bigInt()Get the value as a
BigInt. - bool
-
Bool bool()Get the value as a
Bool - buf
-
virtual Buf buf()Get any of the binary values as a
Buf. The Buf will be a safe copy that can be modified. ThrowsAsnErrif the value is not a binary value. - coll
-
AsnColl coll()Get this object as an
AsnColl - effectiveTags
-
AsnTag[] effectiveTags()Apply rules for
EXPLICITandIMPLICITtags to obtain the set of effective tags for encoding this object. - equals
- hash
-
override Int hash() - int
-
Int int()Get the value as an
Int. If the value is aBigIntyou may lose both precision and sign. UsebigIntto get the value explicitly as aBigInt. - isBool
-
Bool isBool()Is this object's universal tag a
Boolean - isInt
-
Bool isInt()Is this object's universal tag an
Integer - isNull
-
Bool isNull()Is this an ASN.1
Nullvalue - isOcts
-
Bool isOcts()Is this object's universal tag an
Octet String - isOid
-
Bool isOid()Is this object's universal tag an
Object Identifier - isPrimitive
-
Bool isPrimitive()Is this a primitive type?
- make
- oid
-
AsnOid oid()Get this object as an
AsnOid - push
-
virtual AsnObj push(AsnTag tag)Push a tag to the front of the tag chain for this value. Returns a new instance of this object with the current value.
AsnObj.int(123).tag(AsnTag.implicit(TagClass.context, 0)) => [0] IMPLICIT [UNIVERSAL 2] AsnObj.int(123).tag(AsnTag.explicit(TagClass.app, 1)) => [APPLICATION 1] EXPLICIT [UNIVERSAL 2]
- seq
-
AsnSeq seq()Get this object as an
AsnSeq - str
-
Str str()Get the value as a
Str - tag
-
AsnTag tag()Get the single effective tag for this object. Throws an error if there are multiple effective tags
-
const AsnTag[] tagsThe tags for this object.
- toStr
-
virtual override Str toStr() - ts
-
DateTime ts()Get the value as a
DateTimetimestamp - univTag
-
AsnTag univTag()Get the univ tag for this object
- val
-
const Obj? valThe value for this object.
- valEquals
- valHash
-
protected virtual Int valHash() - valStr
-
protected virtual Str valStr()