WillAyd commented on code in PR #710: URL: https://github.com/apache/arrow-nanoarrow/pull/710#discussion_r1947228041
########## src/nanoarrow/common/inline_array.h: ########## @@ -772,6 +787,59 @@ static inline ArrowErrorCode ArrowArrayFinishElement(struct ArrowArray* array) { return EINVAL; } break; + case NANOARROW_TYPE_LIST_VIEW: { + child_length = array->children[0]->length; + if (child_length > INT32_MAX) { + return EOVERFLOW; + } + + const int32_t current_offset = (int32_t)private_data->list_view_offset; + int32_t offset; + if (current_offset == 0) { + offset = 0; + } else { + struct ArrowBuffer offsets_buf, sizes_buf; + offsets_buf = *ArrowArrayBuffer(array, 1); + sizes_buf = *ArrowArrayBuffer(array, 2); Review Comment: Happy to change these but there shouldn't be any updates to the original data through these. Can also add const -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org