diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-12-23 10:06:43 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-12-23 10:06:43 +0100 |
commit | 2cad3db5c81ccc53da44a29ceb02e82d5a3a2444 (patch) | |
tree | c337ed6141b5217d7c9b0a896a90be4d6d9b748b | |
parent | 3b4d0bda273b09c8c21bddd434ef722f65470862 (diff) |
gsm: Add a way to parse the GSM48MIdentity from RSL code
In the RSL code we will have MIdentity without the length
-rw-r--r-- | GSM48.st | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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. |