Skip to content

Commit ccdc149

Browse files
committed
- Ext and Fixext encoding/decoding are now working
- Added testPackUnpackExt, testPackUnpackFixExt test cases
1 parent 99f0712 commit ccdc149

File tree

21 files changed

+89
-12
lines changed

21 files changed

+89
-12
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
actions for exts
22
defineExtsActionsTo: map
33
map at: MpConstants fixext1 put: #readFixext1.
4-
map at: MpConstants fixext1 put: #readFixext2.
5-
map at: MpConstants fixext1 put: #readFixext4.
6-
map at: MpConstants fixext1 put: #readFixext8.
7-
map at: MpConstants fixext1 put: #readFixext16.
4+
map at: MpConstants fixext2 put: #readFixext2.
5+
map at: MpConstants fixext4 put: #readFixext4.
6+
map at: MpConstants fixext8 put: #readFixext8.
7+
map at: MpConstants fixext16 put: #readFixext16.
88
map at: MpConstants ext8 put: #readExt8.
99
map at: MpConstants ext16 put: #readExt16.
1010
map at: MpConstants ext32 put: #readExt32.

repository/MessagePack-Core.package/MpDecodeTypeMapper.class/methodProperties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"defineBinBytesActionTo:" : "mu 8/12/2013 00:43",
55
"defineCompoundsActionsTo:" : "mu 4/30/2011 22:33",
66
"defineDoubleActionTo:" : "mu 4/30/2011 22:44",
7-
"defineExtsActionsTo:" : "mu 11/5/2013 00:06",
7+
"defineExtsActionsTo:" : "mu 12/8/2013 15:35",
88
"defineFalseActionTo:" : "mu 4/30/2011 22:43",
99
"defineFloatActionTo:" : "mu 4/30/2011 22:43",
1010
"defineIntegerActionTo:" : "mu 4/30/2011 22:47",

repository/MessagePack-Core.package/MpDecoder.class/instance/readFixext1.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ reading-fixext
22
readFixext1
33
| data type |
44
type := self readStream next.
5-
data := self readStream next.
5+
data := ByteArray with: self readStream next.
66
^self readFixext: data as: type

repository/MessagePack-Core.package/MpDecoder.class/methodProperties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"readFixRaw:" : "MasashiUmezawa 2/2/2013 01:10",
3737
"readFixStr:" : "mu 8/25/2013 23:55",
3838
"readFixString:" : "MasashiUmezawa 2/2/2013 00:55",
39-
"readFixext1" : "mu 11/5/2013 00:02",
39+
"readFixext1" : "mu 12/8/2013 15:41",
4040
"readFixext16" : "mu 11/5/2013 00:02",
4141
"readFixext2" : "mu 11/5/2013 00:02",
4242
"readFixext4" : "mu 11/5/2013 00:02",

repository/MessagePack-Core.package/MpEncoder.class/instance/writeFixext1.as..st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ writing-fixext
22
writeFixext1: data as: type
33
self writeStream nextPut: MpConstants fixext1;
44
nextPut: type;
5-
nextPut: data
5+
nextPutAll: data

repository/MessagePack-Core.package/MpEncoder.class/methodProperties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"writeExt:as:" : "mu 9/22/2013 01:20",
3636
"writeFalse:" : "mu 4/29/2011 15:24",
3737
"writeFixext16:as:" : "mu 9/22/2013 01:02",
38-
"writeFixext1:as:" : "mu 9/22/2013 01:02",
38+
"writeFixext1:as:" : "mu 12/8/2013 15:32",
3939
"writeFixext2:as:" : "mu 9/22/2013 01:02",
4040
"writeFixext4:as:" : "mu 9/22/2013 01:02",
4141
"writeFixext8:as:" : "mu 9/22/2013 01:02",
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
printing
2+
printDescriptionOn: aStream
3+
self typeCode printOn: aStream.
4+
aStream space.
5+
aStream nextPutAll: 'data: '.
6+
self data printOn: aStream
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
printing
2+
printOn: aStream
3+
aStream nextPutAll: 'Ext: '.
4+
self printDescriptionOn: aStream
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
accessing
2+
size
3+
^self data size

repository/MessagePack-Core.package/MpExtValue.class/methodProperties.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@
44
"instance" : {
55
"data" : "mu 11/4/2013 23:51",
66
"data:" : "mu 11/4/2013 23:51",
7+
"printDescriptionOn:" : "mu 12/8/2013 15:29",
8+
"printOn:" : "mu 12/8/2013 15:29",
9+
"size" : "mu 12/8/2013 15:03",
710
"typeCode" : "mu 11/4/2013 23:27",
811
"typeCode:" : "mu 11/4/2013 23:27" } }

0 commit comments

Comments
 (0)