C# Class TagTool.TagGroups.TagInstance

Describes a tag in a tag cache.
显示文件 Open project: TheGuardians/TagTool Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
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.

Method Details

IsInGroup() public method

Determines whether the tag belongs to a tag group.
public IsInGroup ( Tag groupTag ) : bool
groupTag Tag The group tag.
return bool

IsInGroup() public method

Determines whether the tag belongs to a tag group.
public IsInGroup ( TagGroup group ) : bool
group TagGroup The tag group.
return bool

IsInGroup() public method

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".
return bool

OffsetToPointer() public method

Converts an offset relative to the tag's header to a pointer.
public OffsetToPointer ( uint offset ) : uint
offset uint The offset to convert.
return uint

PointerToOffset() public method

Converts a pointer to an offset relative to the tag's header.
public PointerToOffset ( uint pointer ) : uint
pointer uint The pointer to convert.
return uint

ToString() public method

public ToString ( ) : string
return string