本文整理汇总了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);
}
示例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;
}
示例3: SerializeValue
protected override void SerializeValue(LittleEndianOutput out1)
{
out1.WriteDouble(Value);
}
示例4: Write
public override void Write(LittleEndianOutput out1)
{
out1.WriteByte(sid + PtgClass);
out1.WriteDouble(Value);
}
示例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);
}
示例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);
}
示例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 + "'");
}