MCPcopy Create free account
hub / github.com/apache/arrow-rs / assert_same

Method assert_same

arrow-array/src/array/boolean_array.rs:865–869  ·  view source on GitHub ↗

Assert that the array still points at the exact same values buffer and preserves the same bit view.

(&self, array: &BooleanArray)

Source from the content-addressed store, hash-verified

863 // Assert that the array still points at the exact same values buffer and
864 // preserves the same bit view.
865 fn assert_same(&self, array: &BooleanArray) {
866 assert_eq!(array.values().inner().as_ptr(), self.ptr);
867 assert_eq!(array.values().offset(), self.offset);
868 assert_eq!(array.values().len(), self.len);
869 }
870
871 // Assert that the array now points at a different values allocation,
872 // indicating the operation fell back to an allocating path.

Calls

no outgoing calls