C# Class Agnos.Utils.BoundInputStream

implements a bounded (fixed length) input stream. when closed, the stream will skip all the unread data
Inheritance: Stream
Afficher le fichier Open project: tomerfiliba/agnos Class Usage Examples

Méthodes publiques

Méthode Description
BoundInputStream ( Stream stream, int length, bool skip_underlying, bool close_underlying ) : System

Close ( ) : void

closes the stream

Flush ( ) : void

Not supported

Read ( byte data, int offset, int count ) : int

see Stream.Read for reference. will not read passed the predetermined length

Seek ( long offset, SeekOrigin origin ) : long

Not supported

SetLength ( long value ) : void

Not supported

Skip ( int count ) : int

skips `count` bytes

Write ( byte buffer, int offset, int count ) : void

Not supported

Method Details

BoundInputStream() public méthode

public BoundInputStream ( Stream stream, int length, bool skip_underlying, bool close_underlying ) : System
stream Stream the underlying stream
length int the length of the substream
skip_underlying bool whether to skip all unread data /// when closed
close_underlying bool whether to close the underlying /// stream when this stream is closed
Résultat System

Close() public méthode

closes the stream
public Close ( ) : void
Résultat void

Flush() public méthode

Not supported
public Flush ( ) : void
Résultat void

Read() public méthode

see Stream.Read for reference. will not read passed the predetermined length
public Read ( byte data, int offset, int count ) : int
data byte
offset int
count int
Résultat int

Seek() public méthode

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

SetLength() public méthode

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

Skip() public méthode

skips `count` bytes
public Skip ( int count ) : int
count int the number of bytes to skip. if negative, skip /// all the way to the end of stream
Résultat int

Write() public méthode

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