C# Class Universe.Modules.Archivers.AssetsDearchiver

De-archives assets
Show file Open project: Virtual-Universe/Virtual-Universe

Protected Properties

Property Type Description
m_asciiEncoding System.Text.ASCIIEncoding
m_assetDataAwaitingMetadata byte[]>.Dictionary
m_cache IAssetService
m_metadata AssetMetadata>.Dictionary

Public Methods

Method Description
AddAssetData ( string assetFilename, byte data ) : void

Add asset data to the de-archiver

AddAssetMetadata ( string xml ) : void

Add asset metadata xml

AssetsDearchiver ( IAssetService cache ) : System

Protected Methods

Method Description
ResolveAssetData ( string assetPath, byte data ) : void

Resolve a new piece of asset data against stored metadata

ResolvePendingAssetData ( ) : void

Resolve asset data that we collected before receiving the metadata

Method Details

AddAssetData() public method

Add asset data to the de-archiver
public AddAssetData ( string assetFilename, byte data ) : void
assetFilename string
data byte
return void

AddAssetMetadata() public method

Add asset metadata xml
public AddAssetMetadata ( string xml ) : void
xml string
return void

AssetsDearchiver() public method

public AssetsDearchiver ( IAssetService cache ) : System
cache IAssetService
return System

ResolveAssetData() protected method

Resolve a new piece of asset data against stored metadata
protected ResolveAssetData ( string assetPath, byte data ) : void
assetPath string
data byte
return void

ResolvePendingAssetData() protected method

Resolve asset data that we collected before receiving the metadata
protected ResolvePendingAssetData ( ) : void
return void

Property Details

m_asciiEncoding protected static property

protected static ASCIIEncoding,System.Text m_asciiEncoding
return System.Text.ASCIIEncoding

m_assetDataAwaitingMetadata protected property

Store for asset data we received before we get the metadata
protected Dictionary m_assetDataAwaitingMetadata
return byte[]>.Dictionary

m_cache protected property

Cache to which de-archived assets will be added
protected IAssetService m_cache
return IAssetService

m_metadata protected property

Asset metadata. Is null if asset metadata isn't yet available.
protected Dictionary m_metadata
return AssetMetadata>.Dictionary