C# Class Fusion.Core.Content.AssetStream

Inheritance: Stream
Mostrar archivo Open project: demiurghg/FusionEngine

Public Methods

Method Description
Flush ( ) : void

Flushes underlaying streams.

OpenRead ( string path ) : AssetStream

Opens asset file for reading. Immidiatly reads asset attributes.

OpenWrite ( string fullTargetPath, string buildParameters, string dependencies ) : AssetStream

Opens asset file for writing.

Read ( byte buffer, int offset, int count ) : int

Reads byte array from stream.

Seek ( long offset, SeekOrigin origin ) : long

Overriden. Seek is not supported.

SetLength ( long value ) : void

Overriden. SetLength is not supported.

Write ( byte buffer, int offset, int count ) : void

Writes byte array to stream.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
AssetStream ( string path ) : System

Opens asset stream for reading.

AssetStream ( string fullTargetPath, string buildParameters, string dependencies ) : System

Creates asset file for writing.

Method Details

Dispose() protected method

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

Flush() public method

Flushes underlaying streams.
public Flush ( ) : void
return void

OpenRead() public static method

Opens asset file for reading. Immidiatly reads asset attributes.
public static OpenRead ( string path ) : AssetStream
path string
return AssetStream

OpenWrite() public static method

Opens asset file for writing.
public static OpenWrite ( string fullTargetPath, string buildParameters, string dependencies ) : AssetStream
fullTargetPath string
buildParameters string
dependencies string
return AssetStream

Read() public method

Reads byte array from stream.
public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
return int

Seek() public method

Overriden. Seek is not supported.
public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
return long

SetLength() public method

Overriden. SetLength is not supported.
public SetLength ( long value ) : void
value long
return void

Write() public method

Writes byte array to stream.
public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void