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

SCCP: Find the Complete Layer3 and decode it.

This commit is contained in:
Holger Hans Peter Freyther 2010-11-23 22:01:42 +01:00
parent 8e68c2bc20
commit f3c62fe6dd
1 changed files with 12 additions and 0 deletions

View File

@ -108,6 +108,18 @@ Object subclass: IEMessage [
^ block value.
]
findIE: type ifPresent: block [
"Find the IE with the type"
self ies do: [:each |
each type = type
ifTrue: [
^ block value: each
].
].
^ nil.
]
writeOn: aMsg [
<category: 'creation'>
aMsg putByte: type.