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

GSM48: Consume every byte of the packet or raise an error

This will help finding parser bugs.
This commit is contained in:
Holger Hans Peter Freyther 2010-11-30 20:47:01 +01:00
parent d616368ba0
commit 8aa8533ffb
1 changed files with 4 additions and 0 deletions

View File

@ -460,6 +460,10 @@ IEMessage subclass: GSM48MSG [
].
"TODO: Complain if we have not consumed everything"
dat size = 0
ifFalse: [
self error: 'Every byte should be consumed'.
].
^ res
]