I am trying to write a program that sends data over websocket without having to copy the data in the other side. So far i have written the data to a buffer of recordbatch. Can i send this data through the websocket directly. Someone suggested I do this
GBytes *data = garrow_buffer_get_data(GARROW_BUFFER(buffer)); gsize data_size; gconstpointer data_raw = g_bytes_get_data(data, &data_size); write(websocket_fd, data_raw, data_size); g_bytes_unref(data); g_object_unref(writer); g_object_unref(output); g_object_unref(buffer); But cant i just send the buffer, in the case i cant, how to i acces tje bytes from another programming language?
