C# Class Patcher.IO.ReadOnlyFileStream

A faster version of Stream that locally caches Length and Position.
Inheritance: System.IO.FileStream
Show file Open project: unforbidable/patcher

Public Methods

Method Description
Read ( byte array, int offset, int count ) : int
ReadByte ( ) : int
ReadOnlyFileStream ( string path, FileMode fileMode, FileAccess fileAccess ) : System
Seek ( long offset, SeekOrigin seekOrigin ) : long

Method Details

Read() public method

public Read ( byte array, int offset, int count ) : int
array byte
offset int
count int
return int

ReadByte() public method

public ReadByte ( ) : int
return int

ReadOnlyFileStream() public method

public ReadOnlyFileStream ( string path, FileMode fileMode, FileAccess fileAccess ) : System
path string
fileMode FileMode
fileAccess FileAccess
return System

Seek() public method

public Seek ( long offset, SeekOrigin seekOrigin ) : long
offset long
seekOrigin SeekOrigin
return long