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

gsm: Add a way to parse the GSM48MIdentity from RSL code

In the RSL code we will have MIdentity without the length
This commit is contained in:
Holger Hans Peter Freyther 2012-12-23 10:06:43 +01:00
parent 3b4d0bda27
commit 2cad3db5c8
1 changed files with 5 additions and 2 deletions

View File

@ -543,9 +543,12 @@ GSM48VariableSizedIE subclass: GSM48MIdentity [
]
GSM48MIdentity class >> parseFrom: aStream [
| len head type id |
^ self parseFrom: aStream length: aStream next
]
GSM48MIdentity class >> parseFrom: aStream length: len [
| head type id |
len := aStream next.
head := aStream next.
type := head bitAnd: 16r7.