本文整理汇总了C#中ILittleEndianOutput.WriteByte方法的典型用法代码示例。如果您正苦于以下问题:C# ILittleEndianOutput.WriteByte方法的具体用法?C# ILittleEndianOutput.WriteByte怎么用?C# ILittleEndianOutput.WriteByte使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ILittleEndianOutput
的用法示例。
在下文中一共展示了ILittleEndianOutput.WriteByte方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Serialize
public override void Serialize(ILittleEndianOutput 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: Serialize
public void Serialize(ILittleEndianOutput out1)
{
out1.WriteShort(FirstRow);
out1.WriteShort(LastRow);
out1.WriteByte(FirstColumn);
out1.WriteByte(LastColumn);
}
示例3: Serialize
public override void Serialize(ILittleEndianOutput out1)
{
int field_4_name_length = field_6_name_text.Length;
int field_5_comment_length = field_7_comment_text.Length;
out1.WriteShort(field_1_record_type);
out1.WriteShort(field_2_frt_cell_ref_flag);
out1.WriteLong(field_3_reserved);
out1.WriteShort(field_4_name_length);
out1.WriteShort(field_5_comment_length);
out1.WriteByte(0);
StringUtil.PutCompressedUnicode(field_6_name_text,out1);
out1.WriteByte(0);
StringUtil.PutCompressedUnicode(field_7_comment_text, out1);
}
示例4: Write
public override void Write(ILittleEndianOutput out1)
{
out1.WriteByte(sid + PtgClass);
out1.WriteShort(field_1_index_extern_sheet);
out1.WriteInt(unused1);
out1.WriteInt(unused2);
}
示例5: Write
public override void Write(ILittleEndianOutput out1)
{
out1.WriteByte(sid + PtgClass);
out1.WriteShort(_sheetRefIndex);
out1.WriteShort(_nameNumber);
out1.WriteShort(_reserved);
}
示例6: Serialize
public override void Serialize(ILittleEndianOutput 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);
}
}
示例7: Write
public override void Write(ILittleEndianOutput out1)
{
out1.WriteByte(Sid + PtgClass);
WriteCoordinates(out1);
}
示例8: Serialize
public override void Serialize(ILittleEndianOutput out1)
{
out1.WriteByte(field_1_last_column_index);
out1.WriteByte(field_2_first_column_index);
out1.WriteShort(field_3_row_index);
ConstantValueParser.Encode(out1, field_4_constant_values);
}
示例9: Serialize
public override void Serialize(ILittleEndianOutput out1)
{
out1.WriteByte(field_1_linkType);
out1.WriteByte(field_2_referenceType);
out1.WriteShort(field_3_options);
out1.WriteShort(field_4_indexNumberFmtRecord);
field_5_formulaOfLink.Serialize(out1);
}
示例10: Write
public override void Write(ILittleEndianOutput out1)
{
out1.WriteByte(sid + PtgClass);
out1.WriteInt(field_1_reserved);
}
示例11: Serialize
/**
* Serialize the record data into the supplied array of bytes
*
* @param offset offset in the <c>data</c>
* @param data the data to Serialize into
*
* @return size of the record
*/
public override void Serialize(ILittleEndianOutput out1)
{
out1.WriteShort(field_1_row);
out1.WriteShort(field_2_col);
out1.WriteShort(field_3_flags);
out1.WriteShort(field_4_shapeid);
out1.WriteShort(field_6_author.Length);
out1.WriteByte(field_5_hasMultibyte ? 0x01 : 0x00);
if (field_5_hasMultibyte) {
StringUtil.PutUnicodeLE(field_6_author, out1);
} else {
StringUtil.PutCompressedUnicode(field_6_author, out1);
}
if (field_7_padding != null) {
out1.WriteByte(Convert.ToInt32(field_7_padding, CultureInfo.InvariantCulture));
}
}
示例12: WriteTokenValueBytes
public int WriteTokenValueBytes(ILittleEndianOutput out1)
{
out1.WriteByte(_nColumns - 1);
out1.WriteShort(_nRows - 1);
ConstantValueParser.Encode(out1, _arrayValues);
return 3 + ConstantValueParser.GetEncodedSize(_arrayValues);
}
示例13: Write
public override void Write(ILittleEndianOutput out1)
{
out1.WriteByte(sid + PtgClass);
out1.WriteInt(_reserved0Int);
out1.WriteShort(_reserved1Short);
out1.WriteByte(_reserved2Byte);
}
示例14: Write
public override void Write(ILittleEndianOutput out1)
{
out1.WriteByte(sid + PtgClass);
out1.WriteShort(field_1_label_index);
out1.WriteShort(field_2_zero);
}
示例15: Write
public override void Write(ILittleEndianOutput out1)
{
out1.WriteByte(sid + PtgClass);
out1.WriteByte(_numberOfArgs);
out1.WriteShort(_functionIndex);
}