//hacked to provide one cell reference to 0,0 - 0,0
        public override int Serialize(int offset, byte [] data)
        {
            LittleEndian.PutUShort(data, 0 + offset, sid);
            LittleEndian.PutUShort(data, 2 + offset, this.DataSize);

            LittleEndian.PutByte(data, 4 + offset, this.Pane);
            LittleEndian.PutUShort(data, 5 + offset, this.ActiveCellRow);
            LittleEndian.PutUShort(data, 7 + offset, this.ActiveCellCol);
            LittleEndian.PutUShort(data, 9 + offset, this.ActiveCellRef);
            LittleEndian.PutUShort(data, 11 + offset, field_6_refs.Length);

            for (int i = 0; i < field_6_refs.Length; i++)
            {
                CellRangeAddress8Bit r = field_6_refs[i];
                r.Serialize(offset + 13 + i * CellRangeAddress8Bit.ENCODED_SIZE, data);
            }
            return(4 + DataSize);
        }
Beispiel #2
0
 public override void Serialize(ILittleEndianOutput out1)
 {
     _range.Serialize(out1);
     SerializeExtraData(out1);
 }