C# 클래스 Hjg.Pngcs.PngIDatChunkInputStream

Reads IDAT chunks
상속: Stream
파일 보기 프로젝트 열기: devedse/DeveMazeGenerator 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
foundChunksInfo IList

공개 메소드들

메소드 설명
Close ( ) : void

does NOT close the associated stream!

Flush ( ) : void
ForceChunkEnd ( ) : void

sometimes last row read does not fully consumes the chunk here we read the reamaing dummy bytes

GetIdLastChunk ( ) : byte[]
GetLenLastChunk ( ) : int
GetOffset ( ) : long
IsEnded ( ) : bool
PngIDatChunkInputStream ( Stream iStream, int lenFirstChunk, long offset_0 ) : System

Constructor must be called just after reading length and id of first IDAT chunk

Read ( byte b ) : int
Read ( byte b, int off, int len_0 ) : int

This can return less than len, but never 0 Returns -1 nothing more to read, -2 if "pseudo file" ended prematurely. That is our error.

ReadByte ( ) : int
Seek ( long offset, SeekOrigin origin ) : long
SetLength ( long value ) : void
Write ( byte buffer, int offset, int count ) : void

비공개 메소드들

메소드 설명
DisableCrcCheck ( ) : void

Disables CRC checking. This can make reading faster

EndChunkGoForNext ( ) : void

메소드 상세

Close() 공개 메소드

does NOT close the associated stream!
public Close ( ) : void
리턴 void

Flush() 공개 메소드

public Flush ( ) : void
리턴 void

ForceChunkEnd() 공개 메소드

sometimes last row read does not fully consumes the chunk here we read the reamaing dummy bytes
public ForceChunkEnd ( ) : void
리턴 void

GetIdLastChunk() 공개 메소드

public GetIdLastChunk ( ) : byte[]
리턴 byte[]

GetLenLastChunk() 공개 메소드

public GetLenLastChunk ( ) : int
리턴 int

GetOffset() 공개 메소드

public GetOffset ( ) : long
리턴 long

IsEnded() 공개 메소드

public IsEnded ( ) : bool
리턴 bool

PngIDatChunkInputStream() 공개 메소드

Constructor must be called just after reading length and id of first IDAT chunk
public PngIDatChunkInputStream ( Stream iStream, int lenFirstChunk, long offset_0 ) : System
iStream Stream
lenFirstChunk int
offset_0 long
리턴 System

Read() 공개 메소드

public Read ( byte b ) : int
b byte
리턴 int

Read() 공개 메소드

This can return less than len, but never 0 Returns -1 nothing more to read, -2 if "pseudo file" ended prematurely. That is our error.
public Read ( byte b, int off, int len_0 ) : int
b byte
off int
len_0 int
리턴 int

ReadByte() 공개 메소드

public ReadByte ( ) : int
리턴 int

Seek() 공개 메소드

public Seek ( long offset, SeekOrigin origin ) : long
offset long
origin SeekOrigin
리턴 long

SetLength() 공개 메소드

public SetLength ( long value ) : void
value long
리턴 void

Write() 공개 메소드

public Write ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
리턴 void

프로퍼티 상세

foundChunksInfo 공개적으로 프로퍼티

public IList foundChunksInfo
리턴 IList