C# Class Nexus.Client.Games.Gamebryo.Tools.TESsnip.SubRecord

Encapsulates insteracting with sub-records.
Inheritance: BaseRecord
Exibir arquivo Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method Description
AddRecord ( BaseRecord br ) : void

Adds the given sub-record to the record.

Clone ( ) : BaseRecord

Clones the record.

DeleteRecord ( BaseRecord br ) : void

Deletes the specified sub-record from the record.

GetData ( ) : byte[]

Gets the sub-record's data.

GetDesc ( ) : string

Gets the sub-record's description.

GetHexData ( ) : string

Gets the sub-record's data as a hex number.

GetStrData ( ) : string

Gets the sub-record's data as a string.

SetData ( byte data ) : void

Sets the sub-record's data.

SetStrData ( string s, bool nullTerminate ) : void

Sets the sub-record's data tot he given string.

SubRecord ( ) : System

The default constructor.

Private Methods

Method Description
GetFormattedData ( SubrecordStructure ss, dFormIDLookupI formIDLookup ) : string
GetIDs ( bool lower ) : List

Gets the ids of the sub-records in the record.

GetReadonlyData ( ) : byte[]
SaveData ( BinaryWriter bw ) : void
SubRecord ( SubRecord sr ) : System

The copy constructor.

SubRecord ( string name, BinaryReader br, uint size ) : System

A simple constructor that initializes the object with ther given values.

Method Details

AddRecord() public method

Adds the given sub-record to the record.
public AddRecord ( BaseRecord br ) : void
br BaseRecord The record to add.
return void

Clone() public method

Clones the record.
public Clone ( ) : BaseRecord
return BaseRecord

DeleteRecord() public method

Deletes the specified sub-record from the record.
public DeleteRecord ( BaseRecord br ) : void
br BaseRecord The record to delete.
return void

GetData() public method

Gets the sub-record's data.
public GetData ( ) : byte[]
return byte[]

GetDesc() public method

Gets the sub-record's description.
public GetDesc ( ) : string
return string

GetHexData() public method

Gets the sub-record's data as a hex number.
public GetHexData ( ) : string
return string

GetStrData() public method

Gets the sub-record's data as a string.
public GetStrData ( ) : string
return string

SetData() public method

Sets the sub-record's data.
public SetData ( byte data ) : void
data byte The new data.
return void

SetStrData() public method

Sets the sub-record's data tot he given string.
public SetStrData ( string s, bool nullTerminate ) : void
s string The string to which to set the sub-record's data.
nullTerminate bool Whether to nul-terminate the given string.
return void

SubRecord() public method

The default constructor.
public SubRecord ( ) : System
return System