public void Deserialize(byte data) { ByteBits bits = new ByteBits(data); ManipulateOwnLines = bits[0]; ManipulateOtherLines = bits[1]; ManipulateOwnObjects = bits[2]; ManipulateOtherObjects = bits[3]; WipeStrokes = bits[4]; WipeObjects = bits[5]; UsePointers = bits[6]; }
public byte Serialize() { ByteBits bits = new ByteBits(0); bits[0] = ManipulateOwnLines; bits[1] = ManipulateOtherLines; bits[2] = ManipulateOwnObjects; bits[3] = ManipulateOtherObjects; bits[4] = WipeStrokes; bits[5] = WipeObjects; bits[6] = UsePointers; return(bits.GetByte()); }