Progress on the presents client.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3848 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-02-13 22:07:50 +00:00
parent ad7e4f6be6
commit 8366c150f4
7 changed files with 220 additions and 2 deletions
@@ -0,0 +1,7 @@
package com.threerings.util {
public class JavaConstants
{
public static const SHORT_MAX_VALUE :int = (Math.pow(2, 15) - 1);
}
}
+8 -2
View File
@@ -1,5 +1,11 @@
package com.threerings.util {
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
/**
* TODO: stuff.
*/
public class long extends Object
implements Streamable
{
@@ -13,16 +19,16 @@ public class long extends Object
public function writeObject (out :ObjectOutputStream) :void
//throws IOError
{
out.writeInt(_lowbits);
out.writeInt(_highbits);
out.writeInt(_lowbits);
}
// documentation inherited from interface Streamable
public function readObject (ins :ObjectInputStream) :void
//throws IOError
{
_lowbits = ins.readInt();
_highbits = ins.readInt();
_lowbits = ins.readInt();
}
/** Yon bits. */