hds: Fix datBasic C API

To use void* and size_t.

Somewhat irrelevant as this API should never be used.