本文整理汇总了C#中LittleEndianOutput.WriteByte方法的典型用法代码示例。如果您正苦于以下问题:C# LittleEndianOutput.WriteByte方法的具体用法?C# LittleEndianOutput.WriteByte怎么用?C# LittleEndianOutput.WriteByte使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LittleEndianOutput
的用法示例。
在下文中一共展示了LittleEndianOutput.WriteByte方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: 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);
}
}
示例2: Write
public override void Write(LittleEndianOutput out1)
{
out1.WriteByte(sid + PtgClass);
out1.WriteShort(field_1_index_extern_sheet);
out1.WriteInt(unused1);
out1.WriteInt(unused2);
}
示例3: Write
public override void Write(LittleEndianOutput out1)
{
out1.WriteByte(sid + PtgClass);
out1.WriteShort(_sheetRefIndex);
out1.WriteShort(_nameNumber);
out1.WriteShort(_reserved);
}
示例4: Write
public override void Write(LittleEndianOutput out1)
{
out1.WriteByte(sid + PtgClass);
}
示例5: Serialize
public override void Serialize(LittleEndianOutput out1)
{
out1.WriteShort(rt);
out1.WriteShort(grbitFrt);
out1.WriteByte(verOriginator);
out1.WriteByte(verWriter);
int nCFRTIDs = rgCFRTID.Length;
out1.WriteShort(nCFRTIDs);
for (int i = 0; i < nCFRTIDs; i++)
{
rgCFRTID[i].Serialize(out1);
}
}
示例6: Serialize
public override void Serialize(LittleEndianOutput out1)
{
out1.WriteShort(field_1_flags);
out1.WriteByte(field_2_empty);
out1.WriteByte(0); //reserved field
}
示例7: Write
public override void Write(LittleEndianOutput out1)
{
out1.WriteByte(sid + PtgClass);
out1.Write(field_1_reserved);
}
示例8: 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;
}
示例9: 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);
}
示例10: WriteUnicodeStringFlagAndData
/**
* OutputStream <tt>out</tt> will get:
* <ol>
* <li>byte is16BitFlag</li>
* <li>byte[]/char[] characterData</li>
* </ol>
* For this encoding, the is16BitFlag is always present even if nChars==0.
* <br/>
* This method should be used when the nChars field is <em>not</em> stored
* as a ushort immediately before the is16BitFlag. Otherwise, {@link
* #writeUnicodeString(LittleEndianOutput, String)} can be used.
*/
public static void WriteUnicodeStringFlagAndData(LittleEndianOutput out1, String value)
{
bool is16Bit = HasMultibyte(value);
out1.WriteByte(is16Bit ? 0x01 : 0x00);
if (is16Bit)
{
PutUnicodeLE(value, out1);
}
else
{
PutCompressedUnicode(value, out1);
}
}
示例11: WriteUnicodeString
/**
* OutputStream <tt>out</tt> will get:
* <ol>
* <li>ushort nChars</li>
* <li>byte is16BitFlag</li>
* <li>byte[]/char[] characterData</li>
* </ol>
* For this encoding, the is16BitFlag is always present even if nChars==0.
*/
public static void WriteUnicodeString(LittleEndianOutput out1, String value)
{
int nChars = value.Length;
out1.WriteShort(nChars);
bool is16Bit = HasMultibyte(value);
out1.WriteByte(is16Bit ? 0x01 : 0x00);
if (is16Bit)
{
PutUnicodeLE(value, out1);
}
else
{
PutCompressedUnicode(value, out1);
}
}
示例12: Write
public override void Write(LittleEndianOutput out1)
{
out1.WriteByte(sid + PtgClass);
out1.WriteByte(field_1_value ? 1 : 0);
}
示例13: Serialize
public void Serialize(LittleEndianOutput out1)
{
out1.WriteShort(_wStyle);
out1.WriteShort(_cLine);
out1.WriteShort(_dxMin);
StringUtil.WriteUnicodeString(out1, _str);
out1.WriteByte(_unused);
}
示例14: Serialize
public override void Serialize(LittleEndianOutput out1)
{
out1.WriteShort(field_1_id);
out1.WriteByte(field_4_text.Length);
if (is16bit)
{
// Excel (2007) seems to choose 16bit regardless of whether it is needed
out1.WriteByte(0x01);
StringUtil.PutUnicodeLE(field_4_text, out1);
}
else
{
// Excel can read this OK
out1.WriteByte(0x00);
StringUtil.PutCompressedUnicode(field_4_text, out1);
}
}
示例15: Serialize
public override void Serialize(LittleEndianOutput out1)
{
out1.WriteByte(WSBool1);
out1.WriteByte(WSBool2);
}