Rizin
unix-like reverse engineering framework and cli tools
DotZLib.Info Class Reference

Encapsulates general information about the ZLib library More...

Public Member Functions

 Info ()
 Constructs an instance of the Info class. More...
 

Properties

bool HasDebugInfo [get]
 True if the library is compiled with debug info More...
 
bool UsesAssemblyCode [get]
 True if the library is compiled with assembly optimizations More...
 
int SizeOfUInt [get]
 Gets the size of the unsigned int that was compiled into Zlib More...
 
int SizeOfULong [get]
 Gets the size of the unsigned long that was compiled into Zlib More...
 
int SizeOfPointer [get]
 Gets the size of the pointers that were compiled into Zlib More...
 
int SizeOfOffset [get]
 Gets the size of the z_off_t type that was compiled into Zlib More...
 
static string Version [get]
 Gets the version of ZLib as a string, e.g. "1.2.1" More...
 

Private Member Functions

static uint zlibCompileFlags ()
 
static string zlibVersion ()
 

Static Private Member Functions

static int bitSize (uint bits)
 

Private Attributes

uint _flags
 

Detailed Description

Encapsulates general information about the ZLib library

Definition at line 216 of file DotZLib.cs.

Constructor & Destructor Documentation

◆ Info()

DotZLib.Info.Info ( )
inline

Constructs an instance of the Info class.

Definition at line 245 of file DotZLib.cs.

246  {
248  }
static uint zlibCompileFlags()
uint _flags
Definition: DotZLib.cs:227

References DotZLib.Info._flags, and DotZLib.Info.zlibCompileFlags().

Member Function Documentation

◆ bitSize()

static int DotZLib.Info.bitSize ( uint  bits)
inlinestaticprivate

Definition at line 230 of file DotZLib.cs.

231  {
232  switch (bits)
233  {
234  case 0: return 16;
235  case 1: return 32;
236  case 2: return 64;
237  }
238  return -1;
239  }
int bits(struct state *s, int need)
Definition: blast.c:72

References bits().

◆ zlibCompileFlags()

static uint DotZLib.Info.zlibCompileFlags ( )
private

Referenced by DotZLib.Info.Info().

◆ zlibVersion()

static string DotZLib.Info.zlibVersion ( )
private

Member Data Documentation

◆ _flags

uint DotZLib.Info._flags
private

Definition at line 227 of file DotZLib.cs.

Referenced by DotZLib.Info.Info().

Property Documentation

◆ HasDebugInfo

bool DotZLib.Info.HasDebugInfo
get

True if the library is compiled with debug info

Definition at line 253 of file DotZLib.cs.

253 { get { return 0 != (_flags & 0x100); } }

◆ SizeOfOffset

int DotZLib.Info.SizeOfOffset
get

Gets the size of the z_off_t type that was compiled into Zlib

Definition at line 278 of file DotZLib.cs.

278 { get { return bitSize((_flags >> 6) & 3); } }
static int bitSize(uint bits)
Definition: DotZLib.cs:230

◆ SizeOfPointer

int DotZLib.Info.SizeOfPointer
get

Gets the size of the pointers that were compiled into Zlib

Definition at line 273 of file DotZLib.cs.

273 { get { return bitSize((_flags >> 4) & 3); } }

◆ SizeOfUInt

int DotZLib.Info.SizeOfUInt
get

Gets the size of the unsigned int that was compiled into Zlib

Definition at line 263 of file DotZLib.cs.

263 { get { return bitSize(_flags & 3); } }

◆ SizeOfULong

int DotZLib.Info.SizeOfULong
get

Gets the size of the unsigned long that was compiled into Zlib

Definition at line 268 of file DotZLib.cs.

268 { get { return bitSize((_flags >> 2) & 3); } }

◆ UsesAssemblyCode

bool DotZLib.Info.UsesAssemblyCode
get

True if the library is compiled with assembly optimizations

Definition at line 258 of file DotZLib.cs.

258 { get { return 0 != (_flags & 0x200); } }

◆ Version

string DotZLib.Info.Version
staticget

Gets the version of ZLib as a string, e.g. "1.2.1"

Definition at line 283 of file DotZLib.cs.

283 { get { return zlibVersion(); } }
static string zlibVersion()

Referenced by DotZLib.Deflater.Deflater(), and DotZLib.Inflater.Inflater().


The documentation for this class was generated from the following file: