本文整理汇总了C#中libJT.Utilities.ByteReader.ReadMbString方法的典型用法代码示例。如果您正苦于以下问题:C# ByteReader.ReadMbString方法的具体用法?C# ByteReader.ReadMbString怎么用?C# ByteReader.ReadMbString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类libJT.Utilities.ByteReader
的用法示例。
在下文中一共展示了ByteReader.ReadMbString方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ReadV8
protected override void ReadV8(ByteReader reader)
{
base.ReadV8(reader);
PartitionFlags = reader.ReadI32();
FileName = reader.ReadMbString();
// Read the box either way, if the mask is set, this is a reserved field...do we ignore it?
TransformedBoundingBox = reader.ReadBBoxF32();
Area = reader.ReadF32();
MinVertexCount = reader.ReadI32();
MaxVertexCount = reader.ReadI32();
MinNodeCount= reader.ReadI32();
MaxNodeCount = reader.ReadI32();
MinPolygonCount = reader.ReadI32();
MaxPolygonCount = reader.ReadI32();
if ( ( PartitionFlags & 0x00000001 ) != 0 ) {
UnTransformedBoundingBox = reader.ReadBBoxF32();
}
}
示例2: ReadV8
protected override void ReadV8(ByteReader reader)
{
base.ReadV8(reader);
VersionNumber = reader.ReadI16();
if (VersionNumber == 1) {
ShaderLanguage = (ShaderLanguage)reader.ReadI32();
InlineSourceFlag = reader.ReadU32();
if (InlineSourceFlag == 1) {
SourceCode = reader.ReadMbString();
} else {
SourceCodeLoc = reader.ReadMbString();
}
ShaderParamCount = reader.ReadI32();
for (int i = 0; i < ShaderParamCount; i++) {
var p = new ShaderParameter();
p.ReadV8(reader);
Parameters.Add(p);
}
}
}
示例3: ReadV8
protected override void ReadV8(ByteReader reader)
{
base.ReadV8(reader);
Value = reader.ReadMbString();
}