C# 클래스 IronPigeon.Substream

Wraps an underlying stream with another that has a shorter length so that folks reading cannot read to the end.
The parent stream should not be repositioned while the substream is in use.
상속: Stream
파일 보기 프로젝트 열기: AArnott/IronPigeon

공개 메소드들

메소드 설명
Flush ( ) : void
FlushAsync ( CancellationToken cancellationToken ) : Task
Read ( byte buffer, int offset, int count ) : int
ReadAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
ReadByte ( ) : int
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Substream ( Stream underlyingStream, long length ) : System

Initializes a new instance of the Substream class.

Write ( byte buffer, int offset, int count ) : void
WriteAsync ( byte buffer, int offset, int count, System cancellationToken ) : Task
WriteByte ( byte value ) : void

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

메소드 상세

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

Flush() 공개 메소드

public Flush ( ) : void
리턴 void

FlushAsync() 공개 메소드

public FlushAsync ( CancellationToken cancellationToken ) : Task
cancellationToken System.Threading.CancellationToken
리턴 Task

Read() 공개 메소드

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
리턴 int

ReadAsync() 공개 메소드

public ReadAsync ( byte buffer, int offset, int count, CancellationToken cancellationToken ) : Task
buffer byte
offset int
count int
cancellationToken System.Threading.CancellationToken
리턴 Task

ReadByte() 공개 메소드

public ReadByte ( ) : int
리턴 int

Seek() 공개 메소드

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
리턴 long

SetLength() 공개 메소드

public SetLength ( long value ) : void
value long
리턴 void

Substream() 공개 메소드

Initializes a new instance of the Substream class.
public Substream ( Stream underlyingStream, long length ) : System
underlyingStream Stream The stream to wrap.
length long The length of the stream to expose in this wrapper.
리턴 System

Write() 공개 메소드

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
리턴 void

WriteAsync() 공개 메소드

public WriteAsync ( byte buffer, int offset, int count, System cancellationToken ) : Task
buffer byte
offset int
count int
cancellationToken System
리턴 Task

WriteByte() 공개 메소드

public WriteByte ( byte value ) : void
value byte
리턴 void