Checkpoint.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3912 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -3,7 +3,6 @@ package com.threerings.io {
|
||||
import flash.util.ByteArray;
|
||||
|
||||
public class ArrayMask
|
||||
implements Streamable
|
||||
{
|
||||
public function ArrayMask (length :int = 0)
|
||||
{
|
||||
@@ -31,15 +30,14 @@ public class ArrayMask
|
||||
return (_mask[index/8] & (1 << (index % 8))) != 0;
|
||||
}
|
||||
|
||||
// documentation inherited from interface Streamable
|
||||
public function writeObject (out :ObjectOutputStream) :void
|
||||
public function writeTo (out :ObjectOutputStream) :void
|
||||
{
|
||||
out.writeShort(_mask.length);
|
||||
out.writeBytes(_mask);
|
||||
}
|
||||
|
||||
// documentation inherited from interface Streamable
|
||||
public function readObject (ins :ObjectInputStream) :void
|
||||
public function readFrom (ins :ObjectInputStream) :void
|
||||
{
|
||||
_mask.length = ins.readShort();
|
||||
ins.readBytes(_mask, 0, _mask.length);
|
||||
|
||||
Reference in New Issue
Block a user