Wes McKinney created ARROW-1058:
-----------------------------------

             Summary: [C++] Define minimalist C structs for exposing Arrow data 
types to C code
                 Key: ARROW-1058
                 URL: https://issues.apache.org/jira/browse/ARROW-1058
             Project: Apache Arrow
          Issue Type: New Feature
          Components: C++
            Reporter: Wes McKinney


This can also accompany an alternate IPC loader which does not use 
{{shared_ptr<Buffer>}} or other currently-in-use tools for RAII-based object 
lifetime.

For example, we would be able to expose {{arrow::StringArray}} to C code in a 
struct like

{code:language=c}
typedef struct {
  int64_t length;
  int64_t offset;
  int64_t null_count;
  const uint8_t* valid_bits;
} arrow_array_t;

typedef struct {
  struct arrow_array_t base;
  const int32_t* offsets;
  const uint8_t* data;
} arrow_string_array_t;
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to