C# Класс Glare.Assets.SliceStream

A System.IO.Stream wrapper that encapsulates part of the stream.
Наследование: Stream
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Close ( ) : void

Close the wrapped stream, if closeStream of the constructor was true.

Flush ( ) : void

Flush the wrapped stream.

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

Read from the wrapped stream.

Seek ( long offset, SeekOrigin origin ) : long

Seek within the wrapped stream.

SetLength ( long value ) : void

Throw a NotSupportedException.

SliceStream ( Stream stream, long start, long length, bool closeStream = true ) : System

Initialise the SliceStream.

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

Write to the wrapped stream.

Описание методов

Close() публичный Метод

Close the wrapped stream, if closeStream of the constructor was true.
public Close ( ) : void
Результат void

Flush() публичный Метод

Flush the wrapped stream.
public Flush ( ) : void
Результат void

Read() публичный Метод

Read from the wrapped stream.
public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Результат int

Seek() публичный Метод

Seek within the wrapped stream.
public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Результат long

SetLength() публичный Метод

Throw a NotSupportedException.
public SetLength ( long value ) : void
value long
Результат void

SliceStream() публичный Метод

Initialise the SliceStream.
public SliceStream ( Stream stream, long start, long length, bool closeStream = true ) : System
stream Stream
start long
length long
closeStream bool Whether to the when this is d.
Результат System

Write() публичный Метод

Write to the wrapped stream.
public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Результат void