bkietz commented on code in PR #39019:
URL: https://github.com/apache/arrow/pull/39019#discussion_r1427302977


##########
go/arrow/cdata/cdata_exports.go:
##########
@@ -328,6 +336,15 @@ func allocateBufferPtrArr(n int) (out []*C.void) {
        return
 }
 
+func allocateBufferSizeArr(n int) (out []C.int64_t) {
+       s := (*reflect.SliceHeader)(unsafe.Pointer(&out))
+       s.Data = uintptr(C.calloc(C.size_t(n), 
C.size_t(unsafe.Sizeof(int64(0)))))
+       s.Len = n
+       s.Cap = n
+
+       return

Review Comment:
   It is since there's a named return value



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to