|
|
| version 1.42, 2006/11/01 17:43:43 | version 1.43, 2006/11/13 13:46:17 |
|---|---|
| Line 362 static void _uid64(Request& r, MethodPar | Line 362 static void _uid64(Request& r, MethodPar |
| r.write_pass_lang(*new String(hex_string(id, sizeof(id), true))); | r.write_pass_lang(*new String(hex_string(id, sizeof(id), true))); |
| } | } |
| static void _crc32(Request& r, MethodParams& params) { | |
| const char *string=params.as_string(0, "parameter must be string").cstr(); | |
| r.write_no_lang(*new VInt(pa_crc32(string, strlen(string)))); | |
| } | |
| // constructor | // constructor |
| MMath::MMath(): Methoded("math") { | MMath::MMath(): Methoded("math") { |
| Line 392 MMath::MMath(): Methoded("math") { | Line 397 MMath::MMath(): Methoded("math") { |
| // ^md5[string] | // ^md5[string] |
| ADD1(md5); | ADD1(md5); |
| ADD1(crc32); | |
| // ^uuid[] | // ^uuid[] |
| ADD0(uuid); | ADD0(uuid); |