C# Class TagTool.Serialization.TagSerializationContext

A serialization context for serializing and deserializing tags.
Inheritance: ISerializationContext
Mostrar archivo Open project: TheGuardians/TagTool Class Usage Examples

Public Methods

Method Description
AddressToOffset ( uint currentOffset, uint address ) : uint
BeginDeserialize ( TagStructureInfo info ) : BinaryReader
BeginSerialize ( TagStructureInfo info ) : void
CreateBlock ( ) : IDataBlock
EndDeserialize ( TagStructureInfo info, object obj ) : void
EndSerialize ( TagStructureInfo info, byte data, uint mainStructOffset ) : void
GetTagByIndex ( int index ) : TagInstance
TagSerializationContext ( Stream stream, TagCache cache, StringIDCache stringIds, TagInstance tag ) : System

Creates a tag serialization context which serializes data into a tag.

Method Details

AddressToOffset() public method

public AddressToOffset ( uint currentOffset, uint address ) : uint
currentOffset uint
address uint
return uint

BeginDeserialize() public method

public BeginDeserialize ( TagStructureInfo info ) : BinaryReader
info TagStructureInfo
return System.IO.BinaryReader

BeginSerialize() public method

public BeginSerialize ( TagStructureInfo info ) : void
info TagStructureInfo
return void

CreateBlock() public method

public CreateBlock ( ) : IDataBlock
return IDataBlock

EndDeserialize() public method

public EndDeserialize ( TagStructureInfo info, object obj ) : void
info TagStructureInfo
obj object
return void

EndSerialize() public method

public EndSerialize ( TagStructureInfo info, byte data, uint mainStructOffset ) : void
info TagStructureInfo
data byte
mainStructOffset uint
return void

GetTagByIndex() public method

public GetTagByIndex ( int index ) : TagInstance
index int
return TagTool.TagGroups.TagInstance

TagSerializationContext() public method

Creates a tag serialization context which serializes data into a tag.
public TagSerializationContext ( Stream stream, TagCache cache, StringIDCache stringIds, TagInstance tag ) : System
stream Stream The stream to write to.
cache TagTool.Cache.TagCache The cache file to write to.
stringIds TagTool.Cache.StringIDCache The stringID source to use.
tag TagTool.TagGroups.TagInstance The tag to overwrite.
return System