MCPcopy Create free account
hub / github.com/apache/arrow / nth_varbinary_offset_and_length

Function nth_varbinary_offset_and_length

cpp/src/arrow/compute/row/row_internal.h:135–145  ·  view source on GitHub ↗

Returns the offset within the row and length of the second and further varbinary fields.

Source from the content-addressed store, hash-verified

133 /// Returns the offset within the row and length of the second and further varbinary
134 /// fields.
135 inline void nth_varbinary_offset_and_length(const uint8_t* row, int varbinary_id,
136 uint32_t* out_offset,
137 uint32_t* out_length) const {
138 ARROW_DCHECK(!is_fixed_length);
139 ARROW_DCHECK(varbinary_id > 0);
140 const uint32_t* varbinary_end = varbinary_end_array(row);
141 uint32_t offset = varbinary_end[varbinary_id - 1];
142 offset += padding_for_alignment_within_row(offset, string_alignment);
143 *out_offset = offset;
144 *out_length = varbinary_end[varbinary_id] - offset;
145 }
146
147 uint32_t encoded_field_order(uint32_t icol) const { return column_order[icol]; }
148

Callers

nothing calls this directly

Calls 2

varbinary_end_arrayFunction · 0.85

Tested by

no test coverage detected