C# 클래스 Glare.Assets.SliceStream

A System.IO.Stream wrapper that encapsulates part of the stream.
상속: Stream
파일 보기 프로젝트 열기: Burton-Radons/Alexandria 1 사용 예제들

공개 메소드들

메소드 설명
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