C# 클래스 NanoByte.Common.Streams.DisposeWarpperStream

This wrapper stream passes all operations through to an underlying Stream without modifying them. An additional delegate is executed before Stream.Dispose() is passed through.
상속: Stream
파일 보기 프로젝트 열기: nano-byte/common

공개 메소드들

메소드 설명
DisposeWarpperStream ( [ baseStream, [ disposeHandler ) : System

Creates a new dispose wrapper stream.

Flush ( ) : void
Read ( byte buffer, int offset, int count ) : int
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void

보호된 메소드들

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

메소드 상세

Dispose() 보호된 메소드

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

DisposeWarpperStream() 공개 메소드

Creates a new dispose wrapper stream.
public DisposeWarpperStream ( [ baseStream, [ disposeHandler ) : System
baseStream [ The underlying providing the actual data. Will be disposed.
disposeHandler [ Executed before is disposed.
리턴 System

Flush() 공개 메소드

public Flush ( ) : void
리턴 void

Read() 공개 메소드

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

Seek() 공개 메소드

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

SetLength() 공개 메소드

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

Write() 공개 메소드

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