C# Class TagTool.TagDefinitions.VFilesList

Exibir arquivo Open project: TheGuardians/TagTool Class Usage Examples

Public Properties

Property Type Description
Data byte[]
Files List

Public Methods

Method Description
Extract ( VFileInfo file ) : byte[]

Extracts the specified file.

Find ( string path ) : VFileInfo

Attempts to find a file by its path.

Insert ( string name, string folder, byte fileData ) : void

Adds a new file to the tag.

Remove ( VFileInfo file ) : void

Removes a file from the tag.

Replace ( VFileInfo file, byte newData ) : void

Replaces the specified file.

Method Details

Extract() public method

Extracts the specified file.
public Extract ( VFileInfo file ) : byte[]
file VFileInfo The file to extract.
return byte[]

Find() public method

Attempts to find a file by its path.
public Find ( string path ) : VFileInfo
path string The path of the file to find.
return VFileInfo

Insert() public method

Adds a new file to the tag.
public Insert ( string name, string folder, byte fileData ) : void
name string The name of the file to add.
folder string The folder the file is located in.
fileData byte The file data.
return void

Remove() public method

Removes a file from the tag.
public Remove ( VFileInfo file ) : void
file VFileInfo The file to remove.
return void

Replace() public method

Replaces the specified file.
public Replace ( VFileInfo file, byte newData ) : void
file VFileInfo The file to replace.
newData byte The data to replace it with.
return void

Property Details

Data public_oe property

Gets or sets the data block containing the data for every file.
public byte[] Data
return byte[]

Files public_oe property

Gets or sets the files in the list.
public List Files
return List