smalltalk
/
osmo-st-asn1
Archived
1
0
Fork 0

ber: Make it possible to compare tags

This commit is contained in:
Holger Hans Peter Freyther 2011-04-02 11:01:58 +02:00
parent 04440b5525
commit b77da9be3f
1 changed files with 7 additions and 0 deletions

View File

@ -107,6 +107,13 @@ Object subclass: BERTag [
constructed := false.
]
= aOther [
<category: 'compare'>
(aOther isKindOf: self class) ifTrue: [^self asTuple = aOther asTuple].
^ self asTuple = aOther.
]
parseExtendedTag: aStream [
<category: 'decoding'>