IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
alglib.serializer Class Reference

Public Member Functions

 serializer ()
 
void alloc_start ()
 
void alloc_entry ()
 
void sstart_str ()
 
void ustart_str (string s)
 
void serialize_bool (bool v)
 
void serialize_int (int v)
 
void serialize_double (double v)
 
bool unserialize_bool ()
 
int unserialize_int ()
 
double unserialize_double ()
 
void stop ()
 
string get_string ()
 
 serializer ()
 
void alloc_start ()
 
void alloc_entry ()
 
void sstart_str ()
 
void ustart_str (string s)
 
void serialize_bool (bool v)
 
void serialize_int (int v)
 
void serialize_double (double v)
 
bool unserialize_bool ()
 
int unserialize_int ()
 
double unserialize_double ()
 
void stop ()
 
string get_string ()
 

Private Types

enum  SMODE {
  SMODE.DEFAULT, SMODE.ALLOC, SMODE.TO_STRING, SMODE.FROM_STRING,
  SMODE.DEFAULT, SMODE.ALLOC, SMODE.TO_STRING, SMODE.FROM_STRING
}
 
enum  SMODE {
  SMODE.DEFAULT, SMODE.ALLOC, SMODE.TO_STRING, SMODE.FROM_STRING,
  SMODE.DEFAULT, SMODE.ALLOC, SMODE.TO_STRING, SMODE.FROM_STRING
}
 

Private Member Functions

int get_alloc_size ()
 
int get_alloc_size ()
 

Static Private Member Functions

static char sixbits2char (int v)
 
static int char2sixbits (char c)
 
static void threebytes2foursixbits (byte[] src, int src_offs, int[] dst, int dst_offs)
 
static void foursixbits2threebytes (int[] src, int src_offs, byte[] dst, int dst_offs)
 
static void bool2str (bool v, char[] buf, ref int offs)
 
static bool str2bool (char[] buf, ref int offs)
 
static void int2str (int v, char[] buf, ref int offs)
 
static int str2int (char[] buf, ref int offs)
 
static void double2str (double v, char[] buf, ref int offs)
 
static double str2double (char[] buf, ref int offs)
 
static char sixbits2char (int v)
 
static int char2sixbits (char c)
 
static void threebytes2foursixbits (byte[] src, int src_offs, int[] dst, int dst_offs)
 
static void foursixbits2threebytes (int[] src, int src_offs, byte[] dst, int dst_offs)
 
static void bool2str (bool v, char[] buf, ref int offs)
 
static bool str2bool (char[] buf, ref int offs)
 
static void int2str (int v, char[] buf, ref int offs)
 
static int str2int (char[] buf, ref int offs)
 
static void double2str (double v, char[] buf, ref int offs)
 
static double str2double (char[] buf, ref int offs)
 

Private Attributes

const int SER_ENTRIES_PER_ROW = 5
 
const int SER_ENTRY_LENGTH = 11
 
SMODE mode
 
int entries_needed
 
int entries_saved
 
int bytes_asked
 
int bytes_written
 
int bytes_read
 
char[] out_str
 
char[] in_str
 

Static Private Attributes

static char[] _sixbits2char_tbl
 
static int[] _char2sixbits_tbl
 

Member Enumeration Documentation

Enumerator
DEFAULT 
ALLOC 
TO_STRING 
FROM_STRING 
DEFAULT 
ALLOC 
TO_STRING 
FROM_STRING 
Enumerator
DEFAULT 
ALLOC 
TO_STRING 
FROM_STRING 
DEFAULT 
ALLOC 
TO_STRING 
FROM_STRING 

Constructor & Destructor Documentation

alglib.serializer.serializer ( )
inline
alglib.serializer.serializer ( )
inline

Member Function Documentation

void alglib.serializer.alloc_entry ( )
inline
int alglib.serializer.get_alloc_size ( )
inlineprivate
void alglib.serializer.serialize_bool ( bool  v)
inline
void alglib.serializer.serialize_int ( int  v)
inline
void alglib.serializer.serialize_double ( double  v)
inline
bool alglib.serializer.unserialize_bool ( )
inline
int alglib.serializer.unserialize_int ( )
inline
double alglib.serializer.unserialize_double ( )
inline
static char alglib.serializer.sixbits2char ( int  v)
inlinestaticprivate
static int alglib.serializer.char2sixbits ( char  c)
inlinestaticprivate
static void alglib.serializer.threebytes2foursixbits ( byte[]  src,
int  src_offs,
int[]  dst,
int  dst_offs 
)
inlinestaticprivate
static void alglib.serializer.foursixbits2threebytes ( int[]  src,
int  src_offs,
byte[]  dst,
int  dst_offs 
)
inlinestaticprivate
static void alglib.serializer.bool2str ( bool  v,
char[]  buf,
ref int  offs 
)
inlinestaticprivate
static bool alglib.serializer.str2bool ( char[]  buf,
ref int  offs 
)
inlinestaticprivate
static void alglib.serializer.int2str ( int  v,
char[]  buf,
ref int  offs 
)
inlinestaticprivate
static int alglib.serializer.str2int ( char[]  buf,
ref int  offs 
)
inlinestaticprivate
static void alglib.serializer.double2str ( double  v,
char[]  buf,
ref int  offs 
)
inlinestaticprivate
static double alglib.serializer.str2double ( char[]  buf,
ref int  offs 
)
inlinestaticprivate
void alglib.serializer.alloc_start ( )
inline
void alglib.serializer.alloc_entry ( )
inline
int alglib.serializer.get_alloc_size ( )
inlineprivate
void alglib.serializer.sstart_str ( )
inline
void alglib.serializer.ustart_str ( string  s)
inline
void alglib.serializer.serialize_bool ( bool  v)
inline
void alglib.serializer.serialize_int ( int  v)
inline
void alglib.serializer.serialize_double ( double  v)
inline
bool alglib.serializer.unserialize_bool ( )
inline
int alglib.serializer.unserialize_int ( )
inline
double alglib.serializer.unserialize_double ( )
inline
void alglib.serializer.stop ( )
inline
string alglib.serializer.get_string ( )
inline
static char alglib.serializer.sixbits2char ( int  v)
inlinestaticprivate
static int alglib.serializer.char2sixbits ( char  c)
inlinestaticprivate
static void alglib.serializer.threebytes2foursixbits ( byte[]  src,
int  src_offs,
int[]  dst,
int  dst_offs 
)
inlinestaticprivate
static void alglib.serializer.foursixbits2threebytes ( int[]  src,
int  src_offs,
byte[]  dst,
int  dst_offs 
)
inlinestaticprivate
static void alglib.serializer.bool2str ( bool  v,
char[]  buf,
ref int  offs 
)
inlinestaticprivate
static bool alglib.serializer.str2bool ( char[]  buf,
ref int  offs 
)
inlinestaticprivate
static void alglib.serializer.int2str ( int  v,
char[]  buf,
ref int  offs 
)
inlinestaticprivate
static int alglib.serializer.str2int ( char[]  buf,
ref int  offs 
)
inlinestaticprivate
static void alglib.serializer.double2str ( double  v,
char[]  buf,
ref int  offs 
)
inlinestaticprivate
static double alglib.serializer.str2double ( char[]  buf,
ref int  offs 
)
inlinestaticprivate

Member Data Documentation

const int alglib.serializer.SER_ENTRIES_PER_ROW = 5
private
SMODE alglib.serializer.mode
private
int alglib.serializer.entries_needed
private
int alglib.serializer.entries_saved
private
int alglib.serializer.bytes_asked
private
int alglib.serializer.bytes_written
private
int alglib.serializer.bytes_read
private
char [] alglib.serializer.out_str
private
char [] alglib.serializer.in_str
private
char [] alglib.serializer._sixbits2char_tbl
staticprivate
Initial value:
= new char[64]{
'0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'A', 'B', 'C', 'D', 'E', 'F',
'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N',
'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V',
'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd',
'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l',
'm', 'n', 'o', 'p', 'q', 'r', 's', 't',
'u', 'v', 'w', 'x', 'y', 'z', '-', '_' }
int [] alglib.serializer._char2sixbits_tbl
staticprivate
Initial value:
= new int[128] {
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 62, -1, -1,
0, 1, 2, 3, 4, 5, 6, 7,
8, 9, -1, -1, -1, -1, -1, -1,
-1, 10, 11, 12, 13, 14, 15, 16,
17, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30, 31, 32,
33, 34, 35, -1, -1, -1, -1, 63,
-1, 36, 37, 38, 39, 40, 41, 42,
43, 44, 45, 46, 47, 48, 49, 50,
51, 52, 53, 54, 55, 56, 57, 58,
59, 60, 61, -1, -1, -1, -1, -1 }

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