Mark StreamableArrayList and StreamableHashMap as replaced by their basic Java counterparts. Basic

Map and List types are streamed as fields, which are smaller on the wire.  I'd deprecate them, but
yohoho uses them all over the place.

Handle generating code for StreamableArrayList and StreamableHashMap in actionscript for existing
code.



git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@6215 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Charlie Groves
2010-10-18 21:18:36 +00:00
parent 3a25e8a3b9
commit 20d97bf26a
5 changed files with 45 additions and 15 deletions
@@ -56,9 +56,9 @@ public class StreamableTest extends TestCase
"01000200000003000000000000000440a0000040180000000000000007080100036f6e6500010000" +
"0003010001010000000301020301000000030000000100000002000000030000000100000003fffe" +
"00106a6176612e6c616e672e537472696e6700036f6e650002000374776f00020005746872656500" +
"01000000030002000374776f0002000132000200036f6e6500020001310002000574687265650002" +
"00013301000000030002000374776ffffd00116a6176612e6c616e672e496e746567657200000002" +
"000200036f6e6500030000000100020005746872656500030000000300");
"000001000000030002000374776f0002000132000200036f6e650002000131000200057468726565" +
"000200013301000000030002000374776ffffd00116a6176612e6c616e672e496e74656765720000" +
"0002000200036f6e65000300000001000200057468726565000300000003000000");
var input:ObjectInputStream = new ObjectInputStream(javaData);
var read :ASStreamableSubset = input.readObject(ASStreamableSubset);
assertTrue(sub.equals(read));