Function hyperscan_sys::hs_scratch_size
source · [−]pub unsafe extern "C" fn hs_scratch_size(
scratch: *const hs_scratch_t,
scratch_size: *mut usize
) -> hs_error_t
Expand description
Provides the size of the given scratch space.
@param scratch A per-thread scratch space allocated by @ref hs_alloc_scratch() or @ref hs_clone_scratch().
@param scratch_size On success, the size of the scratch space in bytes is placed in this parameter.
@return @ref HS_SUCCESS on success, other values on failure.