Work on parameter estimation and serialization.

This commit is contained in:
Matthias Vallentin 2013-06-03 22:55:21 -07:00
parent f529df33e0
commit f708cd4a36
6 changed files with 198 additions and 22 deletions

View file

@ -50,6 +50,9 @@ SERIAL_IS_BO(CASE, 0x1200)
SERIAL_IS(LOCATION, 0x1300)
SERIAL_IS(RE_MATCHER, 0x1400)
SERIAL_IS(BITVECTOR, 0x1500)
SERIAL_IS(COUNTERVECTOR, 0xa000)
SERIAL_IS(BLOOMFILTER, 0xa100)
SERIAL_IS(BASICBLOOMFILTER, 0xa200)
// These are the externally visible types.
const SerialType SER_NONE = 0;
@ -105,6 +108,7 @@ SERIAL_VAL(MD5_VAL, 16)
SERIAL_VAL(SHA1_VAL, 17)
SERIAL_VAL(SHA256_VAL, 18)
SERIAL_VAL(ENTROPY_VAL, 19)
SERIAL_VAL(BLOOMFILTER_VAL, 20)
#define SERIAL_EXPR(name, val) SERIAL_CONST(name, val, EXPR)
SERIAL_EXPR(EXPR, 1)
@ -204,5 +208,8 @@ SERIAL_CONST2(CASE)
SERIAL_CONST2(LOCATION)
SERIAL_CONST2(RE_MATCHER)
SERIAL_CONST2(BITVECTOR)
SERIAL_CONST2(COUNTERVECTOR)
SERIAL_CONST2(BLOOMFILTER)
SERIAL_CONST2(BASICBLOOMFILTER)
#endif