& not required in com_read , and you should write this:
Or even better casting would be static_cast :
res = COM.com_read(static_cast<char*>(bucket));
And when sending the bucket to send you don’t have to drop it. This is implied by the compiler, because the target type is void* , and any pointer can implicitly convert to void* .
Nawaz source share