viirya commented on code in PR #3326:
URL: https://github.com/apache/arrow-rs/pull/3326#discussion_r1053884002


##########
arrow-array/src/builder/generic_bytes_builder.rs:
##########
@@ -118,10 +142,39 @@ impl<T: ByteArrayType> GenericByteBuilder<T> {
         self.value_builder.as_slice()
     }
 
+    /// Returns the current values buffer as a mutable slice
+    pub fn values_slice_mut(&mut self) -> &mut [u8] {
+        self.value_builder.as_slice_mut()
+    }
+
     /// Returns the current offsets buffer as a slice
     pub fn offsets_slice(&self) -> &[T::Offset] {
         self.offsets_builder.as_slice()
     }
+
+    /// Returns the current offsets buffer as a mutable slice
+    pub fn offsets_slice_mut(&mut self) -> &mut [T::Offset] {

Review Comment:
   Removed.



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

Reply via email to