aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-12-23 10:06:43 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-12-23 10:06:43 +0100
commit2cad3db5c81ccc53da44a29ceb02e82d5a3a2444 (patch)
treec337ed6141b5217d7c9b0a896a90be4d6d9b748b
parent3b4d0bda273b09c8c21bddd434ef722f65470862 (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.st7
1 files changed, 5 insertions, 2 deletions
diff --git a/GSM48.st b/GSM48.st
index b6e6c0c..dacfaa6 100644
--- a/GSM48.st
+++ b/GSM48.st
@@ -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.