Export function and type for buffer encoding
5.4 Exported Function for buffer compression
5.4 Export function for buffer compression
In order to compress a buffer, the following function pointer must be retrieved from the LZNV DLL and later on executed with the LZNV_BUFFER_COMMAND_PARAMS structure.
#ifdef _WIN64
#define LZNV_DLL_MAIN_FILE_ "LZNV_Main_File_Compress"
#define LZNV_DLL_MAIN_BUFFER_ "LZNV_Main_Buffer_Compress"
#endif
/**
*
* Definitions of LZNV_Main Buffer Compression function prototype
*
* @param _encode_param_struct The LZNV_BUFFER_COMMAND_PARAMS structure which define the parameters for LZNV command
*
*/
typedef int32_t(__stdcall* PF_LZNV_DLL_MAIN_BUFFER)(LZNV_BUFFER_COMMAND_PARAMS& _command_param_struct);