本文整理汇总了C#中libJT.Utilities.ByteReader.ReadByte方法的典型用法代码示例。如果您正苦于以下问题:C# ByteReader.ReadByte方法的具体用法?C# ByteReader.ReadByte怎么用?C# ByteReader.ReadByte使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类libJT.Utilities.ByteReader
的用法示例。
在下文中一共展示了ByteReader.ReadByte方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReadV8
private void ReadV8(ByteReader reader)
{
VersionNumber = reader.ReadI16();
NormalBinding = (Binding)reader.ReadByte();
TextureCoordBinding = (Binding)reader.ReadByte();
ColorBinding = (Binding)reader.ReadByte();
QuantizationParameters = new QuantizationParameters(reader);
}
示例2: Vers1ImageFormat
public Vers1ImageFormat(ByteReader reader)
{
ImageTexelData = new List<byte>();
_numBytes = reader.ReadI32();
if ( _numBytes > 0 ) {
PixelFormat = reader.ReadU32();
PixelDataType = reader.ReadU32();
Dimensionality = reader.ReadI16();
Width = reader.ReadI32();
Height = reader.ReadI32();
MipmapsFlag = reader.ReadU32();
SharedImageFlag = reader.ReadU32();
for ( int i = 0; i < _numBytes; i++ ) {
ImageTexelData.Add( reader.ReadByte() );
}
MipmapMagnificationFilter = reader.ReadI32();
MipmapMinificationFilter = reader.ReadI32();
SDimenWrapMode = reader.ReadI32();
TDimenWrapMode = reader.ReadI32();
TextureFunctionData = reader.ReadI32();
BlendColor = reader.ReadRGBA();
TextureTransform = reader.ReadMx4F32();
}
}
示例3: ReadV10
protected override void ReadV10(ByteReader reader)
{
VersionNumber = reader.ReadByte();
NodeFlagsPMI = reader.ReadU32();
var aCount = reader.ReadI32();
for (int i = 0; i < aCount; i++) {
Attributes.Add(reader.ReadI32());
}
}
示例4: ReadV10
protected override void ReadV10(ByteReader reader)
{
Length = reader.ReadI32();
ObjectTypeID = reader.ReadGuid();
ObjectBaseType = (ObjectBaseType)reader.ReadByte();
ObjectID = reader.ReadI32();
}
示例5: ReadV9
protected override void ReadV9(ByteReader reader)
{
Compression = reader.ReadI32() == 2;
CompressedLength = reader.ReadI32();
Algorithm = reader.ReadByte();
base.ReadV9( reader);
}
示例6: ReadV8
protected override void ReadV8(ByteReader reader)
{
Compression = reader.ReadU32() == 2;
CompressedLength = reader.ReadI32();
Algorithm = reader.ReadByte();
reader.Inflate(true, CompressedLength - 1);
// Decompress the remainder of the header
Length = reader.ReadI32();
ObjectTypeID = reader.ReadGuid();
ObjectBaseType = (ObjectBaseType) reader.ReadByte();
}
示例7: ReadV8
protected override void ReadV8(ByteReader reader)
{
ObjectID = reader.ReadI32();
StateFlags = reader.ReadByte();
FieldInhibitFlags = reader.ReadU32();
}
示例8: Read
/// <summary>
/// Default implementation follows the V10 file specification as the most current version available at the time
/// of this writing.
/// </summary>
/// <param name="reader"></param>
public void Read(ByteReader reader)
{
FullVersion = reader.ReadString(80);
ByteOrder = reader.ReadByte();
reader.Swap = le != ( ByteOrder == 0 );
if (Version < 9) {
ReadV8(reader);
} else if (Version < 10) {
ReadV9(reader);
} else {
ReadV10(reader);
}
}