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

Some utility static methods for internal use.
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
DEBUG bool
PNG_ID_SIGNATURE byte[]
charsetLatin1 System.Text.Encoding
charsetUtf8 System.Text.Encoding

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

Метод Описание
DoubleToInt100000 ( double d ) : int
FilterPaethPredictor ( int a, int b, int c ) : int
GetCRC ( ) : Hjg.Pngcs.Zlib.CRC32

thread-singleton crc engine

GetCrctestVal ( PngReader pngr ) : long
InitCrcForTests ( PngReader pngr ) : void
IntToDouble100000 ( int i ) : double
Logdebug ( String msg ) : void
ReadByte ( Stream mask0 ) : int
ReadBytes ( Stream mask0, byte b, int offset, int len ) : void

guaranteed to read exactly len bytes. throws error if it cant

ReadInt1fromByte ( byte b, int offset ) : int
ReadInt2 ( Stream mask0 ) : int

-1 si eof

ReadInt2fromBytes ( byte b, int offset ) : int
ReadInt4 ( Stream mask0 ) : int

-1 si eof

ReadInt4fromBytes ( byte b, int offset ) : int
SkipBytes ( Stream ist, int len ) : void
UnfilterRowPaeth ( int r, int a, int b, int c ) : int
WriteByte ( Stream os, byte b ) : void
WriteBytes ( Stream os, byte b ) : void
WriteBytes ( Stream os, byte b, int offset, int n ) : void
WriteInt2 ( Stream os, int n ) : void
WriteInt2tobytes ( int n, byte b, int offset ) : void
WriteInt4 ( Stream os, int n ) : void
WriteInt4tobytes ( int n, byte b, int offset ) : void

Приватные методы

Метод Описание
Log ( string p, Exception e ) : void

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

DoubleToInt100000() публичный статический Метод

public static DoubleToInt100000 ( double d ) : int
d double
Результат int

FilterPaethPredictor() публичный статический Метод

public static FilterPaethPredictor ( int a, int b, int c ) : int
a int
b int
c int
Результат int

GetCRC() публичный статический Метод

thread-singleton crc engine
public static GetCRC ( ) : Hjg.Pngcs.Zlib.CRC32
Результат Hjg.Pngcs.Zlib.CRC32

GetCrctestVal() публичный статический Метод

public static GetCrctestVal ( PngReader pngr ) : long
pngr PngReader
Результат long

InitCrcForTests() публичный статический Метод

public static InitCrcForTests ( PngReader pngr ) : void
pngr PngReader
Результат void

IntToDouble100000() публичный статический Метод

public static IntToDouble100000 ( int i ) : double
i int
Результат double

Logdebug() публичный статический Метод

public static Logdebug ( String msg ) : void
msg String
Результат void

ReadByte() публичный статический Метод

public static ReadByte ( Stream mask0 ) : int
mask0 Stream
Результат int

ReadBytes() публичный статический Метод

guaranteed to read exactly len bytes. throws error if it cant
public static ReadBytes ( Stream mask0, byte b, int offset, int len ) : void
mask0 Stream
b byte
offset int
len int
Результат void

ReadInt1fromByte() публичный статический Метод

public static ReadInt1fromByte ( byte b, int offset ) : int
b byte
offset int
Результат int

ReadInt2() публичный статический Метод

-1 si eof
public static ReadInt2 ( Stream mask0 ) : int
mask0 Stream
Результат int

ReadInt2fromBytes() публичный статический Метод

public static ReadInt2fromBytes ( byte b, int offset ) : int
b byte
offset int
Результат int

ReadInt4() публичный статический Метод

-1 si eof
public static ReadInt4 ( Stream mask0 ) : int
mask0 Stream
Результат int

ReadInt4fromBytes() публичный статический Метод

public static ReadInt4fromBytes ( byte b, int offset ) : int
b byte
offset int
Результат int

SkipBytes() публичный статический Метод

public static SkipBytes ( Stream ist, int len ) : void
ist Stream
len int
Результат void

UnfilterRowPaeth() публичный статический Метод

public static UnfilterRowPaeth ( int r, int a, int b, int c ) : int
r int
a int
b int
c int
Результат int

WriteByte() публичный статический Метод

public static WriteByte ( Stream os, byte b ) : void
os Stream
b byte
Результат void

WriteBytes() публичный статический Метод

public static WriteBytes ( Stream os, byte b ) : void
os Stream
b byte
Результат void

WriteBytes() публичный статический Метод

public static WriteBytes ( Stream os, byte b, int offset, int n ) : void
os Stream
b byte
offset int
n int
Результат void

WriteInt2() публичный статический Метод

public static WriteInt2 ( Stream os, int n ) : void
os Stream
n int
Результат void

WriteInt2tobytes() публичный статический Метод

public static WriteInt2tobytes ( int n, byte b, int offset ) : void
n int
b byte
offset int
Результат void

WriteInt4() публичный статический Метод

public static WriteInt4 ( Stream os, int n ) : void
os Stream
n int
Результат void

WriteInt4tobytes() публичный статический Метод

public static WriteInt4tobytes ( int n, byte b, int offset ) : void
n int
b byte
offset int
Результат void

Описание свойств

DEBUG публичное статическое свойство

public static bool DEBUG
Результат bool

PNG_ID_SIGNATURE публичное статическое свойство

public static byte[] PNG_ID_SIGNATURE
Результат byte[]

charsetLatin1 публичное статическое свойство

public static Encoding,System.Text charsetLatin1
Результат System.Text.Encoding

charsetUtf8 публичное статическое свойство

public static Encoding,System.Text charsetUtf8
Результат System.Text.Encoding