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

Method as_slice

arrow-buffer/src/buffer/immutable.rs:236–238  ·  view source on GitHub ↗

Returns the byte slice stored in this buffer

(&self)

Source from the content-addressed store, hash-verified

234
235 /// Returns the byte slice stored in this buffer
236 pub fn as_slice(&self) -> &[u8] {
237 unsafe { std::slice::from_raw_parts(self.ptr, self.length) }
238 }
239
240 pub(crate) fn deallocation(&self) -> &Deallocation {
241 self.data.deallocation()

Callers 5

eqMethod · 0.45
typed_dataMethod · 0.45
bit_chunksMethod · 0.45
count_set_bits_offsetMethod · 0.45
as_refMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected