ubyte[] to void[] for socket