示例#1
0
 public virtual void WriteData(FastBinaryWriter writer, Object additionalInfo)
 {
     writer.Write(FieldTypeId.GetHashCode());
     writer.Write(Justification.GetHashCode());
     writer.WriteSafeString(Caption);
     writer.WriteSafeString(Format);
     writer.WriteSafeString(NullText);
 }
示例#2
0
        public override void WriteData(FastBinaryWriter writer, Object additionalInfo)
        {
            base.WriteData(writer, additionalInfo);

            writer.Write(Expanded);
            writer.WriteSafeString(Caption);

            // write children
            writer.Write(Children.Count);
            foreach (RICustomDataElement element in Children)
            {
                Int32 elementTypeHash = RICustomDataFieldTypeHash;
                if (element.CustomDataType == RICustomDataElementType.Row)
                {
                    elementTypeHash = RICustomDataRowTypeHash;
                }
                else if (element.CustomDataType == RICustomDataElementType.Category)
                {
                    elementTypeHash = RICustomDataCategoryTypeHash;
                }
                else if (element.CustomDataType == RICustomDataElementType.Container)
                {
                    elementTypeHash = RICustomDataContainerTypeHash;
                }

                writer.Write(elementTypeHash);
                writer.Write(element);
            }
        }
示例#3
0
        public override void WriteData(FastBinaryWriter writer, Object additionalInfo)
        {
            base.WriteData(writer, additionalInfo);

            // Hint is no longer used. This line is left here for backward compatibility
            writer.WriteSafeString(null);

            writer.Write(ColumnPos);

            if (writer.WriteNullState(Value))
            {
                switch (Column.FieldTypeId)
                {
                case RICustomDataFieldIdType.Decimal: writer.Write(Decimal.Parse(Value.ToString())); break;

                case RICustomDataFieldIdType.Integer: writer.Write(Int64.Parse(Value.ToString())); break;

                case RICustomDataFieldIdType.DateTime: writer.Write((DateTime)Value); break;

                case RICustomDataFieldIdType.Boolean: writer.Write((Boolean)Value); break;

                case RICustomDataFieldIdType.String: writer.Write(Value.ToString()); break;

                case RICustomDataFieldIdType.Object: writer.Write(Value.ToString()); break;

                case RICustomDataFieldIdType.Unknown: writer.Write(Value.ToString()); break;
                }
            }
        }
示例#4
0
 public virtual void WriteData(FastBinaryWriter writer, Object additionalInfo)
 {
     writer.Write(SessionId);
     writer.Write(DestinationBinding);
     writer.WriteByteArray(EncryptedKey);
     writer.WriteByteArray(EncryptedIV);
     writer.WriteSafeString(CertificateThumbprint);
     writer.Write(RequestId);
     writer.Write(SequenceCount);
     writer.Write(DecompressedLength);
 }
 public virtual void WriteData(FastBinaryWriter writer, Object additionalInfo)
 {
     writer.WriteSafeString(Name);
     writer.Write(Mode.GetHashCode());
     writer.Write(IDs.ToArray());
 }
 public virtual void WriteData(FastBinaryWriter writer, Object additionalInfo)
 {
     writer.WriteSafeString(FData);
 }
 public virtual void WriteData(FastBinaryWriter writer, Object additionalInfo)
 {
     writer.WriteSafeString(FileName);
     writer.Write(FileSize);
 }