C# Class Hjg.Pngcs.PngIDatChunkInputStream

Reads IDAT chunks
Inheritance: Stream
Afficher le fichier Open project: devedse/DeveMazeGenerator Class Usage Examples

Méthodes publiques

Свойство Type Description
foundChunksInfo IList

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
DisableCrcCheck ( ) : void

Disables CRC checking. This can make reading faster

EndChunkGoForNext ( ) : void

Method Details

Close() public méthode

does NOT close the associated stream!
public Close ( ) : void
Résultat void

Flush() public méthode

public Flush ( ) : void
Résultat void

ForceChunkEnd() public méthode

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

GetIdLastChunk() public méthode

public GetIdLastChunk ( ) : byte[]
Résultat byte[]

GetLenLastChunk() public méthode

public GetLenLastChunk ( ) : int
Résultat int

GetOffset() public méthode

public GetOffset ( ) : long
Résultat long

IsEnded() public méthode

public IsEnded ( ) : bool
Résultat bool

PngIDatChunkInputStream() public méthode

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
Résultat System

Read() public méthode

public Read ( byte b ) : int
b byte
Résultat int

Read() public méthode

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
Résultat int

ReadByte() public méthode

public ReadByte ( ) : int
Résultat int

Seek() public méthode

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

SetLength() public méthode

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

Write() public méthode

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

Property Details

foundChunksInfo public_oe property

public IList foundChunksInfo
Résultat IList