Change the 'buf' parameter type from uint8_t* to const void*. Signed-off-by: FragrantRye <903465575@qq.com>