C# Class Hjg.Pngcs.PngHelperInternal

Some utility static methods for internal use.
Show file Open project: devedse/DeveMazeGenerator Class Usage Examples

Public Properties

Property Type Description
DEBUG bool
PNG_ID_SIGNATURE byte[]
charsetLatin1 System.Text.Encoding
charsetUtf8 System.Text.Encoding

Public Methods

Method Description
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

Private Methods

Method Description
Log ( string p, Exception e ) : void

Method Details

DoubleToInt100000() public static method

public static DoubleToInt100000 ( double d ) : int
d double
return int

FilterPaethPredictor() public static method

public static FilterPaethPredictor ( int a, int b, int c ) : int
a int
b int
c int
return int

GetCRC() public static method

thread-singleton crc engine
public static GetCRC ( ) : Hjg.Pngcs.Zlib.CRC32
return Hjg.Pngcs.Zlib.CRC32

GetCrctestVal() public static method

public static GetCrctestVal ( PngReader pngr ) : long
pngr PngReader
return long

InitCrcForTests() public static method

public static InitCrcForTests ( PngReader pngr ) : void
pngr PngReader
return void

IntToDouble100000() public static method

public static IntToDouble100000 ( int i ) : double
i int
return double

Logdebug() public static method

public static Logdebug ( String msg ) : void
msg String
return void

ReadByte() public static method

public static ReadByte ( Stream mask0 ) : int
mask0 Stream
return int

ReadBytes() public static method

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
return void

ReadInt1fromByte() public static method

public static ReadInt1fromByte ( byte b, int offset ) : int
b byte
offset int
return int

ReadInt2() public static method

-1 si eof
public static ReadInt2 ( Stream mask0 ) : int
mask0 Stream
return int

ReadInt2fromBytes() public static method

public static ReadInt2fromBytes ( byte b, int offset ) : int
b byte
offset int
return int

ReadInt4() public static method

-1 si eof
public static ReadInt4 ( Stream mask0 ) : int
mask0 Stream
return int

ReadInt4fromBytes() public static method

public static ReadInt4fromBytes ( byte b, int offset ) : int
b byte
offset int
return int

SkipBytes() public static method

public static SkipBytes ( Stream ist, int len ) : void
ist Stream
len int
return void

UnfilterRowPaeth() public static method

public static UnfilterRowPaeth ( int r, int a, int b, int c ) : int
r int
a int
b int
c int
return int

WriteByte() public static method

public static WriteByte ( Stream os, byte b ) : void
os Stream
b byte
return void

WriteBytes() public static method

public static WriteBytes ( Stream os, byte b ) : void
os Stream
b byte
return void

WriteBytes() public static method

public static WriteBytes ( Stream os, byte b, int offset, int n ) : void
os Stream
b byte
offset int
n int
return void

WriteInt2() public static method

public static WriteInt2 ( Stream os, int n ) : void
os Stream
n int
return void

WriteInt2tobytes() public static method

public static WriteInt2tobytes ( int n, byte b, int offset ) : void
n int
b byte
offset int
return void

WriteInt4() public static method

public static WriteInt4 ( Stream os, int n ) : void
os Stream
n int
return void

WriteInt4tobytes() public static method

public static WriteInt4tobytes ( int n, byte b, int offset ) : void
n int
b byte
offset int
return void

Property Details

DEBUG public static property

public static bool DEBUG
return bool

PNG_ID_SIGNATURE public static property

public static byte[] PNG_ID_SIGNATURE
return byte[]

charsetLatin1 public static property

public static Encoding,System.Text charsetLatin1
return System.Text.Encoding

charsetUtf8 public static property

public static Encoding,System.Text charsetUtf8
return System.Text.Encoding