C# Класс Hjg.Pngcs.PngIDatChunkInputStream

Reads IDAT chunks
Наследование: Stream
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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