You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Kouhei Sutou (Jira)" <ji...@apache.org> on 2021/02/06 21:53:00 UTC

[jira] [Commented] (ARROW-11540) [GLib] Add low level GArrowBuffer to const guint8 * conversion function

    [ https://issues.apache.org/jira/browse/ARROW-11540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17280301#comment-17280301 ] 

Kouhei Sutou commented on ARROW-11540:
--------------------------------------

Does the following satisfy your use case?

{noformat}
GBytes *bytes = garrow_buffer_get_data(buffer);
gsize data_size;
gconstpointer *data = g_bytes_get_data(bytes, &data_size);
g_bytes_unref(bytes);
{noformat}

> [GLib] Add low level GArrowBuffer to const guint8 * conversion function
> -----------------------------------------------------------------------
>
>                 Key: ARROW-11540
>                 URL: https://issues.apache.org/jira/browse/ARROW-11540
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: GLib
>            Reporter: Tanveer
>            Priority: Minor
>
> Hi, Can we have a support of low level function to convert GArrowBuffer to const guint8 * data in Arrow GLib? 
> Like: 
> {code:java}
> const guint8 *garrow_buffer_get_databytes(GArrowBuffer *buffer)
> {  
>   auto arrow_buffer = garrow_buffer_get_raw(buffer);  
>   return arrow_buffer->data();
> }{code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)