JavaScript generic ASN.1 parser (mirror)
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Print defs also in pretty tring mode.

+10 -1
+10 -1
asn1.js
··· 489 489 } 490 490 toPrettyString(indent) { 491 491 if (indent === undefined) indent = ''; 492 - let s = indent + this.typeName() + ' @' + this.stream.pos; 492 + let s = indent; 493 + if (this.def) { 494 + if (this.def.id) 495 + s += this.def.id + ' '; 496 + if (this.def.name && this.def.name != this.typeName().replace(/_/g, ' ')) 497 + s+= this.def.name + ' '; 498 + if (this.def.mismatch) 499 + s += '[?] '; 500 + } 501 + s += this.typeName() + ' @' + this.stream.pos; 493 502 if (this.length >= 0) 494 503 s += '+'; 495 504 s += this.length;