C# Class ValveResourceFormat.Resource

Represents a Valve resource.
Inheritance: IDisposable
Show file Open project: SteamDatabase/ValveResourceFormat Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Releases binary reader.

Read ( Stream input ) : void

Reads the given Stream.

Read ( string filename ) : void

Opens and reads the given filename. The file is held open until the object is disposed.

Resource ( ) : System

Initializes a new instance of the Resource class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
ConstructFromType ( string input ) : Block
ConstructResourceType ( ) : ValveResourceFormat.Blocks.ResourceData
DetermineResourceTypeByCompilerIdentifier ( SpecialDependencies input ) : ResourceType

Method Details

Dispose() public method

Releases binary reader.
public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Read() public method

Reads the given Stream.
public Read ( Stream input ) : void
input Stream The input to read from.
return void

Read() public method

Opens and reads the given filename. The file is held open until the object is disposed.
public Read ( string filename ) : void
filename string The file to open and read.
return void

Resource() public method

Initializes a new instance of the Resource class.
public Resource ( ) : System
return System