C# 클래스 bsharptree.io.CachedStreamWrapper

A simple wrapper for a Stream which caches the position and length values, instead of calculating them every time. This improves performance against large files.
상속: System.IO.Stream
파일 보기 프로젝트 열기: thoward/bsharptree

공개 메소드들

메소드 설명
CachedStreamWrapper ( Stream stream ) : System.IO
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

메소드 상세

CachedStreamWrapper() 공개 메소드

public CachedStreamWrapper ( Stream stream ) : System.IO
stream System.IO.Stream
리턴 System.IO

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