C# Класс Agnos.Utils.BoundInputStream

implements a bounded (fixed length) input stream. when closed, the stream will skip all the unread data
Наследование: Stream
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Описание методов

BoundInputStream() публичный Метод

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
Результат System

Close() публичный Метод

closes the stream
public Close ( ) : void
Результат void

Flush() публичный Метод

Not supported
public Flush ( ) : void
Результат void

Read() публичный Метод

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
Результат int

Seek() публичный Метод

Not supported
public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
Результат long

SetLength() публичный Метод

Not supported
public SetLength ( long value ) : void
value long
Результат void

Skip() публичный Метод

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
Результат int

Write() публичный Метод

Not supported
public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Результат void