当前位置: 首页>>代码示例>>C#>>正文


C# LittleEndianOutput.WriteDouble方法代码示例

本文整理汇总了C#中LittleEndianOutput.WriteDouble方法的典型用法代码示例。如果您正苦于以下问题:C# LittleEndianOutput.WriteDouble方法的具体用法?C# LittleEndianOutput.WriteDouble怎么用?C# LittleEndianOutput.WriteDouble使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在LittleEndianOutput的用法示例。


在下文中一共展示了LittleEndianOutput.WriteDouble方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Serialize

 public override void Serialize(LittleEndianOutput out1)
 {
     out1.WriteDouble(field_1_minimumAxisValue);
     out1.WriteDouble(field_2_maximumAxisValue);
     out1.WriteDouble(field_3_majorIncrement);
     out1.WriteDouble(field_4_minorIncrement);
     out1.WriteDouble(field_5_categoryAxisCross);
     out1.WriteShort(field_6_options);
 }
开发者ID:babywzazy,项目名称:Server,代码行数:9,代码来源:ValueRangeRecord.cs

示例2: Serialize

 public int Serialize(LittleEndianOutput out1)
 {
     out1.WriteByte((byte)vt);
     switch (vt)
     {
         case DOPERType.RKNumber:
             out1.WriteByte(grbitSgn);
             _RK.Serialize(out1);
             out1.WriteInt(0);  //reserved
             break;
         case DOPERType.IEEENumber:
             out1.WriteByte(grbitSgn);
             out1.WriteDouble(_IEEENumber);
             break;
         case DOPERType.String:
             out1.WriteByte(grbitSgn);
             out1.WriteInt(0);  //reserved
             out1.WriteByte(CCH);
             out1.WriteByte(0);      //reserved
             out1.WriteShort(0);     //reserved
             break;
         case DOPERType.BooleanOrErrors:
             out1.WriteByte(grbitSgn);
             out1.WriteByte(fError);
             out1.WriteByte(bBoolErr);
             out1.WriteShort(0);    //reserved
             out1.WriteInt(0);      //reserved
             break;
         default:    //FilterCondition,MatchAllBlanks,MatchNoneBlank
             out1.WriteByte(0);      //reserved
             out1.WriteLong(0);      //reserved
             break;
     }
     return this.RecordSize;            
 }
开发者ID:uwitec,项目名称:web-mvc-logistics,代码行数:35,代码来源:DOPER.cs

示例3: SerializeValue

 protected override void SerializeValue(LittleEndianOutput out1)
 {
     out1.WriteDouble(Value);
 }
开发者ID:babywzazy,项目名称:Server,代码行数:4,代码来源:NumberRecord.cs

示例4: Write

 public override void Write(LittleEndianOutput out1)
 {
     out1.WriteByte(sid + PtgClass);
     out1.WriteDouble(Value);
 }
开发者ID:uwitec,项目名称:web-mvc-logistics,代码行数:5,代码来源:NumberPtg.cs

示例5: SerializeValue

        protected override void SerializeValue(LittleEndianOutput out1)
        {
            if (specialCachedValue == null)
            {
                out1.WriteDouble(field_4_value);
            }
            else
            {
                specialCachedValue.Serialize(out1);
            }

            out1.WriteShort(Options);

            out1.WriteInt(field_6_zero); // may as well write original data back so as to minimise differences from original
            field_8_parsed_expr.Serialize(out1);
        }
开发者ID:babywzazy,项目名称:Server,代码行数:16,代码来源:FormulaRecord.cs

示例6: Serialize

 public override void Serialize(LittleEndianOutput out1)
 {
     out1.WriteShort(PaperSize);
     out1.WriteShort(Scale);
     out1.WriteShort(PageStart);
     out1.WriteShort(FitWidth);
     out1.WriteShort(FitHeight);
     out1.WriteShort(Options);
     out1.WriteShort(HResolution);
     out1.WriteShort(VResolution);
     out1.WriteDouble(HeaderMargin);
     out1.WriteDouble(FooterMargin);
     out1.WriteShort(Copies);
 }
开发者ID:uwitec,项目名称:web-mvc-logistics,代码行数:14,代码来源:PrintSetupRecord.cs

示例7: EncodeSingleValue

        private static void EncodeSingleValue(LittleEndianOutput out1, Object value)
        {
            if (value == EMPTY_REPRESENTATION)
            {
                out1.WriteByte(TYPE_EMPTY);
                out1.WriteLong(0L);
                return;
            }
            if (value is bool)
            {
                bool bVal = ((bool)value);
                out1.WriteByte(TYPE_BOOLEAN);
                long longVal = bVal ? 1L : 0L;
                out1.WriteLong(longVal);
                return;
            }
            if (value is double)
            {
                double dVal = (double)value;
                out1.WriteByte(TYPE_NUMBER);
                out1.WriteDouble(dVal);
                return;
            }
            if (value is String)
            {
                String val = (String)value;
                out1.WriteByte(TYPE_STRING);
                StringUtil.WriteUnicodeString(out1, val);
                return;
            }
            if (value is ErrorConstant)
            {
                ErrorConstant ecVal = (ErrorConstant)value;
                out1.WriteByte(TYPE_ERROR_CODE);
                long longVal = ecVal.ErrorCode;
                out1.WriteLong(longVal);
                return;
            }

            throw new Exception("Unexpected value type (" + value.GetType().Name + "'");
        }
开发者ID:babywzazy,项目名称:Server,代码行数:41,代码来源:ConstantValueParser.cs


注:本文中的LittleEndianOutput.WriteDouble方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。