Class AssetStream
Stream containing an asset data, and its path.
Assembly: Evergine.Common.dll
Syntax
public class AssetStream : Stream, IDisposable
Constructors
AssetStream(string, Stream)
Declaration
public AssetStream(string path, Stream stream)
Parameters
Type |
Name |
Description |
string |
path |
The asset path.
|
Stream |
stream |
The asset stream.
|
AssetStream(string, Stream, bool)
Declaration
public AssetStream(string path, Stream stream, bool leaveOpen)
Parameters
Type |
Name |
Description |
string |
path |
The asset path.
|
Stream |
stream |
The asset stream.
|
bool |
leaveOpen |
true to leave the stream open after the AssetStream object is disposed; otherwise, false .
|
AssetStream(string, string, Stream, bool)
Declaration
public AssetStream(string path, string targetPath, Stream stream, bool leaveOpen)
Parameters
Type |
Name |
Description |
string |
path |
The asset path.
|
string |
targetPath |
The target path.
|
Stream |
stream |
The asset stream.
|
bool |
leaveOpen |
true to leave the stream open after the AssetStream object is disposed; otherwise, false .
|
Properties
CanRead
Declaration
public override bool CanRead { get; }
Property Value
Overrides
CanSeek
Declaration
public override bool CanSeek { get; }
Property Value
Overrides
CanWrite
Declaration
public override bool CanWrite { get; }
Property Value
Overrides
Length
Declaration
public override long Length { get; }
Property Value
Overrides
Path
Declaration
public string Path { get; }
Property Value
Position
Declaration
public override long Position { get; set; }
Property Value
Overrides
TargetPath
Gets or sets the environment path.
Declaration
public string TargetPath { get; set; }
Property Value
Methods
Dispose(bool)
Declaration
protected override void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
bool |
disposing |
|
Overrides
Flush()
Declaration
public override void Flush()
Overrides
Read(byte[], int, int)
Declaration
public override int Read(byte[] buffer, int offset, int count)
Parameters
Type |
Name |
Description |
byte[] |
buffer |
|
int |
offset |
|
int |
count |
|
Returns
Overrides
Seek(long, SeekOrigin)
Declaration
public override long Seek(long offset, SeekOrigin origin)
Parameters
Returns
Overrides
SetLength(long)
Declaration
public override void SetLength(long value)
Parameters
Type |
Name |
Description |
long |
value |
|
Overrides
Write(byte[], int, int)
Declaration
public override void Write(byte[] buffer, int offset, int count)
Parameters
Type |
Name |
Description |
byte[] |
buffer |
|
int |
offset |
|
int |
count |
|
Overrides
Implements
Extension Methods