示例#1
0
 public override void Serialize(ILittleEndianOutput out1)
 {
     out1.WriteShort(field_1_numcf);
     out1.WriteShort(field_2_need_recalculation);
     field_3_enclosing_cell_range.Serialize(out1);
     field_4_cell_ranges.Serialize(out1);
 }
示例#2
0
        /**
         * @return byte array containing instance data
         */

        public override int Serialize(int offset, byte[] data)
        {
            int dataSize = DataSize;

            LittleEndian.PutUShort(data, 0 + offset, sid);
            LittleEndian.PutUShort(data, 2 + offset, dataSize);
            LittleEndian.PutUShort(data, 4 + offset, field_1_numcf);
            LittleEndian.PutUShort(data, 6 + offset, field_2_need_recalculation);
            field_3_enclosing_cell_range.Serialize(8 + offset, data);
            field_4_cell_ranges.Serialize(16 + offset, data);
            return(4 + dataSize);
        }
示例#3
0
        public override void Serialize(ILittleEndianOutput out1)
        {
            out1.WriteInt(_option_flags);

            SerializeUnicodeString(_promptTitle, out1);
            SerializeUnicodeString(_errorTitle, out1);
            SerializeUnicodeString(_promptText, out1);
            SerializeUnicodeString(_errorText, out1);
            out1.WriteShort(_formula1.EncodedTokenSize);
            out1.WriteShort(_not_used_1);
            _formula1.SerializeTokens(out1);

            out1.WriteShort(_formula2.EncodedTokenSize);
            out1.WriteShort(_not_used_2);
            _formula2.SerializeTokens(out1);

            _regions.Serialize(out1);
        }