Re-set the position in the byte array so that we can read from it using the

IDataInput methods.


git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@72 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Ray Greenwell
2006-09-18 21:42:43 +00:00
parent 854986f4fc
commit 62dc95dbf9
@@ -62,6 +62,9 @@ public class EZObjectMarshaller
return dest;
}
var bytes :ByteArray = (encoded as ByteArray);
// re-set the position in case we're decoding the actual same byte
// array used to encode (and not a network reconstruction)
bytes.position = 0;
// TODO: Our own decoding, that takes into account
// the ApplicationDomain