C# Class 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.
Inheritance: System.IO.Stream
Afficher le fichier Open project: thoward/bsharptree

Méthodes publiques

Méthode Description
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

Method Details

CachedStreamWrapper() public méthode

public CachedStreamWrapper ( Stream stream ) : System.IO
stream System.IO.Stream
Résultat System.IO

Flush() public méthode

public Flush ( ) : void
Résultat void

Read() public méthode

public Read ( byte buffer, int offset, int count ) : int
buffer byte
offset int
count int
Résultat int

Seek() public méthode

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Résultat long

SetLength() public méthode

public SetLength ( long value ) : void
value long
Résultat void

Write() public méthode

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Résultat void