C# 클래스 Agnos.Utils.BoundInputStream

implements a bounded (fixed length) input stream. when closed, the stream will skip all the unread data
상속: Stream
파일 보기 프로젝트 열기: tomerfiliba/agnos 1 사용 예제들

공개 메소드들

메소드 설명
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