Search Results for

    Show / Hide Table of Contents

    Class AssetStream

    Stream containing an asset data, and its path.

    Inheritance
    object
    MarshalByRefObject
    Stream
    AssetStream
    Namespace: Evergine.Common.IO
    Assembly: Evergine.Common.dll
    Syntax
    public class AssetStream : Stream

    Constructors

    AssetStream(string, Stream)

    Initializes a new instance of the AssetStream class.

    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)

    Initializes a new instance of the AssetStream class.

    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)

    Initializes a new instance of the AssetStream class.

    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
    Type Description
    bool
    Overrides
    Stream.CanRead

    CanSeek

    Declaration
    public override bool CanSeek { get; }
    Property Value
    Type Description
    bool
    Overrides
    Stream.CanSeek

    CanWrite

    Declaration
    public override bool CanWrite { get; }
    Property Value
    Type Description
    bool
    Overrides
    Stream.CanWrite

    Length

    Declaration
    public override long Length { get; }
    Property Value
    Type Description
    long
    Overrides
    Stream.Length

    Path

    Gets the asset path.

    Declaration
    public string Path { get; }
    Property Value
    Type Description
    string

    Position

    Declaration
    public override long Position { get; set; }
    Property Value
    Type Description
    long
    Overrides
    Stream.Position

    TargetPath

    Gets or sets the environment path.

    Declaration
    public string TargetPath { get; set; }
    Property Value
    Type Description
    string

    Methods

    Dispose(bool)

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing
    Overrides
    Stream.Dispose(bool)

    Flush()

    Declaration
    public override void Flush()
    Overrides
    Stream.Flush()

    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
    Type Description
    int
    Overrides
    Stream.Read(byte[], int, int)

    Seek(long, SeekOrigin)

    Declaration
    public override long Seek(long offset, SeekOrigin origin)
    Parameters
    Type Name Description
    long offset
    SeekOrigin origin
    Returns
    Type Description
    long
    Overrides
    Stream.Seek(long, SeekOrigin)

    SetLength(long)

    Declaration
    public override void SetLength(long value)
    Parameters
    Type Name Description
    long value
    Overrides
    Stream.SetLength(long)

    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
    Stream.Write(byte[], int, int)

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX