GSM48Classmark1: Implement parsing the classmark
This commit is contained in:
parent
86642be3ef
commit
58f2f19c98
12
GSM48.st
12
GSM48.st
|
@ -89,7 +89,19 @@ Object subclass: GSM48Classmark1 [
|
|||
yourself
|
||||
]
|
||||
|
||||
GSM48Classmark1 class >> length: aByteArray [
|
||||
^ 1
|
||||
]
|
||||
|
||||
GSM48Classmark1 class >> parseFrom: aByteArray [
|
||||
^ (self new)
|
||||
cm1: (aByteArray at: 1);
|
||||
yourself
|
||||
]
|
||||
|
||||
cm1: aCm [ <category: 'creation'> cm1 := aCm ]
|
||||
cm1 [ ^ cm1 ]
|
||||
|
||||
writeOnDirect: aMsg [
|
||||
<category: 'creation'>
|
||||
aMsg putByte: cm1.
|
||||
|
|
Reference in New Issue