C# Класс TagTool.TagGroups.TagInstance

Describes a tag in a tag cache.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
IsInGroup ( Tag groupTag ) : bool

Determines whether the tag belongs to a tag group.

IsInGroup ( TagGroup group ) : bool

Determines whether the tag belongs to a tag group.

IsInGroup ( string groupTag ) : bool

Determines whether the tag belongs to a tag group.

OffsetToPointer ( uint offset ) : uint

Converts an offset relative to the tag's header to a pointer.

PointerToOffset ( uint pointer ) : uint

Converts a pointer to an offset relative to the tag's header.

ToString ( ) : string

Приватные методы

Метод Описание
CalculateHeaderSize ( TagData data ) : uint

Calculates the header size that would be needed for a given block of tag data.

ReadHeader ( BinaryReader reader ) : void

Reads the header for the tag instance from a stream.

TagInstance ( int index ) : System.Collections.Generic
TagInstance ( int index, TagGroup group ) : System.Collections.Generic
Update ( TagData data, uint dataOffset ) : void

Updates the tag instance's state from a block of tag data.

WriteHeader ( BinaryWriter writer ) : void

Writes the header for the tag instance to a stream.

Описание методов

IsInGroup() публичный Метод

Determines whether the tag belongs to a tag group.
public IsInGroup ( Tag groupTag ) : bool
groupTag Tag The group tag.
Результат bool

IsInGroup() публичный Метод

Determines whether the tag belongs to a tag group.
public IsInGroup ( TagGroup group ) : bool
group TagGroup The tag group.
Результат bool

IsInGroup() публичный Метод

Determines whether the tag belongs to a tag group.
public IsInGroup ( string groupTag ) : bool
groupTag string A 4-character string representing the group tag, e.g. "scnr".
Результат bool

OffsetToPointer() публичный Метод

Converts an offset relative to the tag's header to a pointer.
public OffsetToPointer ( uint offset ) : uint
offset uint The offset to convert.
Результат uint

PointerToOffset() публичный Метод

Converts a pointer to an offset relative to the tag's header.
public PointerToOffset ( uint pointer ) : uint
pointer uint The pointer to convert.
Результат uint

ToString() публичный Метод

public ToString ( ) : string
Результат string