interface: make memory functions to take void*'s
interface: make memory functions to take void*'s

This is for consistency with memcpy and to avoid explicit casts on
C++

RafaGago/mini-async-log-c,RafaGago/mini-async-log-c,RafaGago/mini-async-log-c