Function hyperscan_sys::hs_serialized_database_info
source · [−]pub unsafe extern "C" fn hs_serialized_database_info(
bytes: *const c_char,
length: usize,
info: *mut *mut c_char
) -> hs_error_t
Expand description
Utility function providing information about a serialized database.
@param bytes Pointer to a serialized database.
@param length Length in bytes of the serialized database.
@param info On success, a string containing the version and platform information for the supplied serialized database is placed in the parameter. The string is allocated using the allocator supplied in @ref hs_set_misc_allocator() (or malloc() if no allocator was set) and should be freed by the caller.
@return @ref HS_SUCCESS on success, other values on failure.