kurento: How to pass guint8 * to java server as an int[] -
i trying send gstbuffer
objects map.data
java server. have created event parameter int[]
when raising event getting following error @ compile time.
error: no matching function call ‘kurento::module::vadcustomfilter::bufferreceived::bufferreceived(std::shared_ptr<kurento::mediaobject>, const char [16], int*)’ bufferreceived event (shared_from_this (), "buffer received", ((int *)buffer));
map.data
of type guint8 *
is there wrong doing in type casting ?
i tried sending map.data
std::string
@ java side not receiving complete string.
casting guint8*
char*
fine, because sign changes. casting int *
not ok because size different, in order send kind of events, may need copy array of guint8
array of int
. think not fast operation, nor serializing big event, not expect have great performance.
furthermore, kurento events expects (you should check signature of bufferreceived
) when declare array std::vector<int>
, in case need create array , copy content.
Comments
Post a Comment