本文整理汇总了C#中Zephyr.Utils.NPOI.HSSF.Record.RecordInputStream.ReadByte方法的典型用法代码示例。如果您正苦于以下问题:C# RecordInputStream.ReadByte方法的具体用法?C# RecordInputStream.ReadByte怎么用?C# RecordInputStream.ReadByte使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zephyr.Utils.NPOI.HSSF.Record.RecordInputStream
的用法示例。
在下文中一共展示了RecordInputStream.ReadByte方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CRNRecord
public CRNRecord(RecordInputStream in1)
{
field_1_last_column_index = in1.ReadByte() & 0x00FF;
field_2_first_column_index = in1.ReadByte() & 0x00FF;
field_3_row_index = in1.ReadShort();
int nValues = field_1_last_column_index - field_2_first_column_index + 1;
field_4_constant_values = ConstantValueParser.Parse(in1, nValues);
}
示例2: MMSRecord
/**
* Constructs a MMS record and Sets its fields appropriately.
* @param in the RecordInputstream to Read the record from
*/
public MMSRecord(RecordInputStream in1)
{
if (in1.Remaining == 0)
{
return;
}
field_1_AddMenuCount = (byte)in1.ReadByte();
field_2_delMenuCount = (byte)in1.ReadByte();
}
示例3: TableRecord
public TableRecord(RecordInputStream in1)
: base(in1)
{
field_5_flags = in1.ReadByte();
field_6_res = in1.ReadByte();
field_7_rowInputRow = in1.ReadShort();
field_8_colInputRow = in1.ReadShort();
field_9_rowInputCol = in1.ReadShort();
field_10_colInputCol = in1.ReadShort();
}
示例4: ChartFRTInfoRecord
public ChartFRTInfoRecord(RecordInputStream in1)
{
rt = in1.ReadShort();
grbitFrt = in1.ReadShort();
verOriginator = (byte)in1.ReadByte();
verWriter = (byte)in1.ReadByte();
int cCFRTID = in1.ReadShort();
rgCFRTID = new CFRTID[cCFRTID];
for (int i = 0; i < cCFRTID; i++)
{
rgCFRTID[i] = new CFRTID(in1);
}
}
示例5: FeatRecord
public FeatRecord(RecordInputStream in1)
{
futureHeader = new FtrHeader(in1);
isf_sharedFeatureType = in1.ReadShort();
reserved1 = (byte)in1.ReadByte();
reserved2 = in1.ReadInt();
int cref = in1.ReadUShort();
cbFeatData = in1.ReadInt();
reserved3 = in1.ReadShort();
cellRefs = new CellRangeAddress[cref];
for (int i = 0; i < cellRefs.Length; i++)
{
cellRefs[i] = new CellRangeAddress(in1);
}
switch (isf_sharedFeatureType)
{
case FeatHdrRecord.SHAREDFEATURES_ISFPROTECTION:
sharedFeature = new FeatProtection(in1);
break;
case FeatHdrRecord.SHAREDFEATURES_ISFFEC2:
sharedFeature = new FeatFormulaErr2(in1);
break;
case FeatHdrRecord.SHAREDFEATURES_ISFFACTOID:
sharedFeature = new FeatSmartTag(in1);
break;
default:
System.Console.WriteLine("Unknown Shared Feature " + isf_sharedFeatureType + " found!");
break;
}
}
示例6: BoolErrRecord
/**
* Constructs a BoolErr record and Sets its fields appropriately.
*
* @param in the RecordInputstream to Read the record from
*/
public BoolErrRecord(RecordInputStream in1)
: base(in1)
{
switch (in1.Remaining)
{
case 2:
_value = in1.ReadByte();
break;
case 3:
_value = in1.ReadUShort();
break;
default:
throw new RecordFormatException("Unexpected size ("
+ in1.Remaining + ") for BOOLERR record.");
}
int flag = in1.ReadUByte();
switch (flag)
{
case 0:
_isError = false;
break;
case 1:
_isError = true;
break;
default:
throw new RecordFormatException("Unexpected isError flag ("
+ flag + ") for BOOLERR record.");
}
}
示例7: ColumnInfoRecord
/**
* Constructs a ColumnInfo record and Sets its fields appropriately
* @param in the RecordInputstream to Read the record from
*/
public ColumnInfoRecord(RecordInputStream in1)
{
_first_col = in1.ReadUShort();
_last_col = in1.ReadUShort();
_col_width = in1.ReadUShort();
_xf_index = in1.ReadUShort();
_options = in1.ReadUShort();
switch (in1.Remaining)
{
case 2: // usual case
field_6_reserved = in1.ReadUShort();
break;
case 1:
// often COLINFO Gets encoded 1 byte short
// shouldn't matter because this field Is Unused
field_6_reserved = in1.ReadByte();
break;
case 0:
// According to bugzilla 48332,
// "SoftArtisans OfficeWriter for Excel" totally skips field 6
// Excel seems to be OK with this, and assumes zero.
field_6_reserved = 0;
break;
default:
throw new Exception("Unusual record size remaining=(" + in1.Remaining + ")");
}
}
示例8: TickRecord
/**
* Constructs a Tick record and Sets its fields appropriately.
*
* @param in the RecordInputstream to Read the record from
*/
public TickRecord(RecordInputStream in1)
{
field_1_majorTickType = (byte)in1.ReadByte();
field_2_minorTickType = (byte)in1.ReadByte();
field_3_labelPosition = (byte)in1.ReadByte();
field_4_background = (byte)in1.ReadByte();
field_5_labelColorRgb = (byte)in1.ReadInt();
field_6_zero1 = in1.ReadInt();
field_7_zero2 = in1.ReadInt();
field_8_zero3 = in1.ReadInt();
field_9_zero4 = in1.ReadInt();
field_10_options = in1.ReadShort();
field_11_tickColor = in1.ReadShort();
field_12_zero5 = in1.ReadShort();
}
示例9: StyleRecord
/**
* Constructs a Style record and Sets its fields appropriately.
* @param in the RecordInputstream to Read the record from
*/
public StyleRecord(RecordInputStream in1)
{
field_1_xf_index = in1.ReadShort();
if (IsBuiltin)
{
field_2_builtin_style = in1.ReadByte();
field_3_outline_style_level = in1.ReadByte();
}
else
{
int field_2_name_length = in1.ReadShort();
// Some files from Crystal Reports lack
// the remaining fields, which Is naughty
if (in1.Remaining <1)
{
// Some files from Crystal Reports lack the is16BitUnicode byte
// the remaining fields, which is naughty
if (field_2_name_length != 0)
{
throw new RecordFormatException("Ran out of data reading style record");
}
// guess this is OK if the string length is zero
field_4_name = "";
}
else
{
field_3_stringHasMultibyte = in1.ReadByte() != 0x00;
if (field_3_stringHasMultibyte)
{
field_4_name = StringUtil.ReadUnicodeLE(in1, field_2_name_length);
}
else
{
field_4_name = StringUtil.ReadCompressedUnicode(in1,field_2_name_length);
}
}
}
// todo sanity Check exception to make sure we're one or the other
}
示例10: StringRecord
/**
* Constructs a String record and Sets its fields appropriately.
*
* @param in the RecordInputstream to Read the record from
*/
public StringRecord(RecordInputStream in1)
{
int field_1_string_length = in1.ReadShort();
_is16bitUnicode = in1.ReadByte() != 0x00;
if (_is16bitUnicode)
{
_text = in1.ReadUnicodeLEString(field_1_string_length);
}
else
{
_text = in1.ReadCompressedUnicode(field_1_string_length);
}
}
示例11: SelectionRecord
/// <summary>
/// Constructs a Selection record and Sets its fields appropriately.
/// </summary>
/// <param name="in1">the RecordInputstream to Read the record from</param>
public SelectionRecord(RecordInputStream in1)
{
field_1_pane = (byte)in1.ReadByte();
field_2_row_active_cell = in1.ReadUShort();
field_3_col_active_cell = in1.ReadShort();
field_4_ref_active_cell = in1.ReadShort();
int field_5_num_refs = in1.ReadUShort();
field_6_refs = new CellRangeAddress8Bit[field_5_num_refs];
for (int i = 0; i < field_5_num_refs; i++)
{
field_6_refs[i] = new CellRangeAddress8Bit(in1);
}
}
示例12: FormatRecord
/**
* Constructs a Format record and Sets its fields appropriately.
* @param in the RecordInputstream to Read the record from
*/
public FormatRecord(RecordInputStream in1)
{
field_1_index_code = in1.ReadShort();
int field_3_unicode_len = in1.ReadShort();
field_3_hasMultibyte = (in1.ReadByte() & (byte)0x01) != 0;
if (field_3_hasMultibyte)
{
// Unicode
field_4_formatstring = in1.ReadUnicodeLEString(field_3_unicode_len);
}
else
{
// not Unicode
field_4_formatstring = in1.ReadCompressedUnicode(field_3_unicode_len);
}
}
示例13: NoteRecord
/**
* Constructs a <c>NoteRecord</c> and Fills its fields
* from the supplied <c>RecordInputStream</c>.
*
* @param in the stream to Read from
*/
public NoteRecord(RecordInputStream in1)
{
field_1_row = in1.ReadShort();
field_2_col = in1.ReadUShort();
field_3_flags = in1.ReadShort();
field_4_shapeid = in1.ReadUShort();
int length = in1.ReadShort();
field_5_hasMultibyte = in1.ReadByte() != 0x00;
if (field_5_hasMultibyte) {
field_6_author = StringUtil.ReadUnicodeLE(in1, length);
} else {
field_6_author = StringUtil.ReadCompressedUnicode(in1, length);
}
if (in1.Available() == 1) {
field_7_padding = (byte)in1.ReadByte();
}
}
示例14: FileSharingRecord
/**
* Constructs a FileSharing record and Sets its fields appropriately.
* @param in the RecordInputstream to Read the record from
*/
public FileSharingRecord(RecordInputStream in1)
{
field_1_Readonly = in1.ReadShort();
field_2_password = in1.ReadShort();
int nameLen = in1.ReadShort();
if (nameLen > 0)
{
// TODO - Current examples(3) from junits only have zero Length username.
field_3_username_unicode_options = (byte)in1.ReadByte();
field_3_username_value = in1.ReadCompressedUnicode(nameLen);
}
else
{
field_3_username_value = "";
}
}
示例15: ViewFieldsRecord
public ViewFieldsRecord(RecordInputStream in1)
{
sxaxis = in1.ReadShort();
cSub = in1.ReadShort();
grbitSub = in1.ReadShort();
cItm = in1.ReadShort();
int cchName = in1.ReadUShort();
if (cchName != STRING_NOT_PRESENT_LEN)
{
int flag = in1.ReadByte();
if ((flag & 0x01) != 0)
{
_name = in1.ReadUnicodeLEString(cchName);
}
else
{
_name = in1.ReadCompressedUnicode(cchName);
}
}
}