This documentation describes the Prokee module interface.
Encodes data.
Signature:
char *dstr::encode(const void *data,unsigned int length,const char *symbols)
Parameters:
| const void * | data | [IN] | Pointer to the data that should be encoded. |
| unsigned int | length | | The length (size) of the data pointed to by data. |
| const char * | symbols | [IN] | A null-terminated string containing the alphabet to use for encoding. |
Return value:The null-terminated string that contains the encoded data.
Decodes the string
bstr and returns the decoded data.
Signature:
void *dstr::decode(const char *bstr,const char *symbols)
Parameters:
| const char * | bstr | [IN] | A null-terminated string of encoded data as returned by encode(). |
| const char * | symbols | [IN] | A null-terminated string containing the alphabet to use for encoding. |
Return value:Returns a pointer to the new allocated memory block containing the decoded data.
Runs
dstr as if it would be called from the command-line.
See
Commandline-Interface.
Signature:
int dstr::main(int argc,char **argv)
Parameters:
| int | argc | | The number of command-line parameters. |
| char ** | argv | [IN] | The command-line parameters. |
Return value:Exit status.