VedantRalekar commented on code in PR #50310:
URL: https://github.com/apache/arrow/pull/50310#discussion_r3522639768


##########
cpp/src/arrow/array/data.h:
##########
@@ -271,6 +271,28 @@ struct ARROW_EXPORT ArrayData {
     return GetValues<T>(i, offset);
   }
 
+  /// \brief Access a buffer's data as a span
+  ///
+  /// \param i The buffer index
+  /// \param length The required length (in number of typed values) of the 
requested span
+  /// \pre i > 0
+  /// \pre length <= the length of the buffer (in number of values) that's 
expected for
+  /// this array type
+  /// \return A span<const T> of the requested length

Review Comment:
   i have added a mention of empty span to \return, please review it.



-- 
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