本文整理汇总了C#中LittleEndianOutput.WriteInt方法的典型用法代码示例。如果您正苦于以下问题:C# LittleEndianOutput.WriteInt方法的具体用法?C# LittleEndianOutput.WriteInt怎么用?C# LittleEndianOutput.WriteInt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LittleEndianOutput
的用法示例。
在下文中一共展示了LittleEndianOutput.WriteInt方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Write
public override void Write(LittleEndianOutput out1)
{
out1.WriteByte(sid + PtgClass);
out1.WriteShort(field_1_index_extern_sheet);
out1.WriteInt(unused1);
out1.WriteInt(unused2);
}
示例2: Serialize
public override void Serialize(LittleEndianOutput out1)
{
out1.WriteInt(grbit1);
out1.WriteByte(grbit2);
out1.WriteByte(citmShow);
out1.WriteShort(isxdiSort);
out1.WriteShort(isxdiShow);
if (subName == null)
{
out1.WriteShort(STRING_NOT_PRESENT_LEN);
}
else
{
out1.WriteShort(subName.Length);
}
out1.WriteInt(reserved1);
out1.WriteInt(reserved2);
if (subName != null)
{
StringUtil.PutUnicodeLE(subName, out1);
}
}
示例3: Serialize
public override void Serialize(LittleEndianOutput out1)
{
out1.WriteShort(rt);
out1.WriteShort(grbitFrt);
out1.Write(unused);
out1.WriteInt(cts);
out1.WriteShort(rgchDefListStyle.Length);
out1.WriteShort(rgchDefPivotStyle.Length);
StringUtil.PutUnicodeLE(rgchDefListStyle, out1);
StringUtil.PutUnicodeLE(rgchDefPivotStyle, out1);
}
示例4: Serialize
public override void Serialize(LittleEndianOutput out1)
{
out1.WriteShort(sid);
out1.WriteShort(DataSize);
out1.WriteInt(0);
out1.WriteShort(field_1_iVal);
out1.WriteShort(field_2_iMin);
out1.WriteShort(field_3_iMax);
out1.WriteShort(field_4_dInc);
out1.WriteShort(field_5_dPage);
out1.WriteShort(field_6_fHoriz);
out1.WriteShort(field_7_dxScroll);
out1.WriteShort(field_8_options);
}
示例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)
{
_range.Serialize(out1);
_guid.Serialize(out1);
out1.WriteInt(0x00000002); // TODO const
out1.WriteInt(_linkOpts);
if ((_linkOpts & HLINK_LABEL) != 0)
{
out1.WriteInt(_label.Length);
StringUtil.PutUnicodeLE(_label, out1);
}
if ((_linkOpts & HLINK_TARGET_FRAME) != 0)
{
out1.WriteInt(_targetFrame.Length);
StringUtil.PutUnicodeLE(_targetFrame, out1);
}
if ((_linkOpts & HLINK_URL) != 0 && (_linkOpts & HLINK_UNC_PATH) != 0)
{
out1.WriteInt(_address.Length);
StringUtil.PutUnicodeLE(_address, out1);
}
if ((_linkOpts & HLINK_URL) != 0 && (_linkOpts & HLINK_UNC_PATH) == 0)
{
_moniker.Serialize(out1);
if (_moniker != null && URL_MONIKER.Equals(_moniker))
{
if (_uninterpretedTail == null)
{
out1.WriteInt(_address.Length * 2);
StringUtil.PutUnicodeLE(_address, out1);
}
else
{
out1.WriteInt(_address.Length * 2 + TAIL_SIZE);
StringUtil.PutUnicodeLE(_address, out1);
WriteTail(_uninterpretedTail, out1);
}
}
else if (_moniker != null && FILE_MONIKER.Equals(_moniker))
{
out1.WriteShort(_fileOpts);
out1.WriteInt(_shortFilename.Length);
StringUtil.PutCompressedUnicode(_shortFilename, out1);
WriteTail(_uninterpretedTail, out1);
if (string.IsNullOrEmpty(_address))
{
out1.WriteInt(0);
}
else
{
int addrLen = _address.Length * 2;
out1.WriteInt(addrLen + 6);
out1.WriteInt(addrLen);
out1.WriteShort(0x0003); // TODO const
StringUtil.PutUnicodeLE(_address, out1);
}
}
}
if ((_linkOpts & HLINK_PLACE) != 0)
{
out1.WriteInt(_textMark.Length);
StringUtil.PutUnicodeLE(_textMark, out1);
}
}
示例7: Serialize
public override void Serialize(LittleEndianOutput out1)
{
out1.WriteByte(field_1_majorTickType);
out1.WriteByte(field_2_minorTickType);
out1.WriteByte(field_3_labelPosition);
out1.WriteByte(field_4_background);
out1.WriteInt(field_5_labelColorRgb);
out1.WriteInt(field_6_zero1);
out1.WriteInt(field_7_zero2);
out1.WriteInt(field_8_zero3);
out1.WriteInt(field_9_zero4);
out1.WriteShort(field_10_options);
out1.WriteShort(field_11_tickColor);
out1.WriteShort(field_12_zero5);
}
示例8: Serialize
public override void Serialize(LittleEndianOutput out1)
{
out1.WriteShort(sid);
out1.WriteShort(_cbFContinued); // note - this is *not* the size
if (_linkPtg == null)
{
out1.WriteShort(0);
}
else
{
int formulaSize = _linkPtg.Size;
int linkSize = formulaSize + 6;
if (_unknownPostFormulaByte != null)
{
linkSize++;
}
out1.WriteShort(linkSize);
out1.WriteShort(formulaSize);
out1.WriteInt(_unknownPreFormulaInt);
_linkPtg.Write(out1);
if (_unknownPostFormulaByte != null)
{
out1.WriteByte(Convert.ToByte(_unknownPostFormulaByte));
}
}
out1.WriteShort(_cLines);
out1.WriteShort(_iSel);
out1.WriteShort(_flags);
out1.WriteShort(_idEdit);
if (_dropData != null)
{
_dropData.Serialize(out1);
}
if (_rgLines != null)
{
foreach (String str in _rgLines)
{
StringUtil.WriteUnicodeString(out1, str);
}
}
if (_bsels != null)
{
foreach (bool val in _bsels)
{
out1.WriteByte(val ? 1 : 0);
}
}
}
示例9: Serialize
public override void Serialize(LittleEndianOutput out1)
{
out1.WriteInt(FirstRow);
out1.WriteInt(LastRow);
out1.WriteShort(FirstCol);
out1.WriteShort(LastCol);
out1.WriteShort(( short ) 0);
}
示例10: Serialize
public override void Serialize(LittleEndianOutput out1)
{
out1.WriteInt(field_1_x);
out1.WriteInt(field_2_y);
out1.WriteInt(field_3_width);
out1.WriteInt(field_4_height);
}
示例11: Serialize
public override void Serialize(LittleEndianOutput out1)
{
out1.WriteByte(field_1_horizontalAlignment);
out1.WriteByte(field_2_verticalAlignment);
out1.WriteShort(field_3_DisplayMode);
out1.WriteInt(field_4_rgbColor);
out1.WriteInt(field_5_x);
out1.WriteInt(field_6_y);
out1.WriteInt(field_7_width);
out1.WriteInt(field_8_height);
out1.WriteShort(field_9_options1);
out1.WriteShort(field_10_IndexOfColorValue);
out1.WriteShort(field_11_options2);
out1.WriteShort(field_12_textRotation);
}
示例12: Write
public override void Write(LittleEndianOutput out1)
{
out1.WriteByte(sid + PtgClass);
out1.WriteInt(field_1_reserved);
out1.WriteShort(field_2_subex_len);
}
示例13: 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;
}
示例14: Serialize
public override void Serialize(LittleEndianOutput out1)
{
out1.WriteInt(field_1_xAxisUpperLeft);
out1.WriteInt(field_2_yAxisUpperLeft);
out1.WriteInt(field_3_xSize);
out1.WriteInt(field_4_ySize);
out1.WriteByte(field_5_type);
out1.WriteByte(field_6_spacing);
out1.WriteShort(field_7_options);
}
示例15: Serialize
public override void Serialize(LittleEndianOutput out1)
{
out1.WriteShort(field_1_axisType);
out1.WriteInt(field_2_x);
out1.WriteInt(field_3_y);
out1.WriteInt(field_4_width);
out1.WriteInt(field_5_height);
}