(&self)
| 273 | impl<T: ArrowNativeType> ToByteSlice for [T] { |
| 274 | #[inline] |
| 275 | fn to_byte_slice(&self) -> &[u8] { |
| 276 | let raw_ptr = self.as_ptr() as *const u8; |
| 277 | unsafe { std::slice::from_raw_parts(raw_ptr, std::mem::size_of_val(self)) } |
| 278 | } |
| 279 | } |
| 280 | |
| 281 | impl<T: ArrowNativeType> ToByteSlice for T { |