本文整理汇总了C#中IUnrealStream.ReadNameIndex方法的典型用法代码示例。如果您正苦于以下问题:C# IUnrealStream.ReadNameIndex方法的具体用法?C# IUnrealStream.ReadNameIndex怎么用?C# IUnrealStream.ReadNameIndex使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IUnrealStream
的用法示例。
在下文中一共展示了IUnrealStream.ReadNameIndex方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Deserialize
public void Deserialize( IUnrealStream stream )
{
var index = stream.ReadNameIndex( out _Number );
_NameItem = stream.Package.Names[index];
Debug.Assert( _NameItem != null, "_NameItem cannot be null! " + index );
Debug.Assert( _Number >= -1, "Invalid _Number value! " + _Number );
}
示例2: Deserialize
public override void Deserialize( IUnrealStream stream )
{
// TODO: Corrigate Version
if( stream.Version > 180 )
{
++ stream.Position; // ReadByte()
Decompiler.AlignSize( sizeof(byte) );
}
// Delegate object index
stream.ReadObjectIndex();
Decompiler.AlignObjectSize();
// Delegate name index
FunctionNameIndex = stream.ReadNameIndex();
Decompiler.AlignNameSize();
DeserializeCall();
}
示例3: Deserialize
public override void Deserialize( IUnrealStream stream )
{
// FIXME: MOHA or general?
if( stream.Version == 421 )
{
Decompiler.AlignSize( sizeof(int) );
}
// Unknown purpose.
NameIndex = stream.ReadNameIndex();
Decompiler.AlignNameSize();
// TODO: Corrigate version. Seen in version ~648(The Ball) may have been introduced earlier, but not prior 610.
if( stream.Version > 610 )
{
base.Deserialize( stream );
}
}