本文整理汇总了C#中System.IO.Stream.ReadValueU16方法的典型用法代码示例。如果您正苦于以下问题:C# Stream.ReadValueU16方法的具体用法?C# Stream.ReadValueU16怎么用?C# Stream.ReadValueU16使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.IO.Stream
的用法示例。
在下文中一共展示了Stream.ReadValueU16方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public int Deserialize(Stream input)
{
_opFlags = input.ReadValueU16();
_opTargetNum = input.ReadValueU16();
_opFuncName = input.ReadValueEncodedS32();
return 8;
}
示例2: Deserialize
public int Deserialize(Stream input)
{
_opFlags = input.ReadValueU16();
_opTarget = input.ReadValueU16();
OpFuncId = input.ReadValueEncodedS32();
if (OpFuncId == -1)
{
OpOperator = (OperatorCode) input.ReadValueEncodedS32();
}
return 8;
}
示例3: Deserialize
public void Deserialize(Stream input, bool littleEndian)
{
this.Build = (FileBuild)input.ReadValueU32(littleEndian);
this.Alignment = input.ReadValueU16(littleEndian);
this.Flags = input.ReadValueU16(littleEndian);
this.Type = input.ReadValueU32(littleEndian);
this.Unknown0C = input.ReadValueU32(littleEndian);
this.Type2 = input.ReadValueU32(littleEndian);
this.Unknown14 = input.ReadValueU32(littleEndian);
this.Unknown18 = input.ReadValueU32(littleEndian);
this.TotalSize = input.ReadValueU32(littleEndian);
this.BaseName = input.ReadStringZ();
this.FileName = input.ReadStringZ();
this.TypeName = input.ReadStringZ();
}
示例4: Deserialize
public int Deserialize(Stream input)
{
_op0 = input.ReadValueU16();
_op1 = input.ReadValueU16();
return 4;
}
示例5: Deserialize
public int Deserialize(Stream input)
{
_op0 = input.ReadValueU16();
_op1 = input.ReadValueEncodedS32();
return 6;
}
示例6: Deserialize
public int Deserialize(Stream input)
{
Op0 = input.ReadValueU16();
return 2;
}