MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / as_slice

Method as_slice

nodedb/src/data/io/aligned_buf.rs:62–64  ·  view source on GitHub ↗
(&self, len: usize)

Source from the content-addressed store, hash-verified

60 /// Caller must ensure `len <= capacity` and the bytes have been written.
61 #[inline]
62 pub unsafe fn as_slice(&self, len: usize) -> &[u8] {
63 unsafe { std::slice::from_raw_parts(self.ptr, len) }
64 }
65
66 /// Copy the first `len` bytes into an owned Vec.
67 ///

Callers 15

convert_aggregateFunction · 0.45
rotateMethod · 0.45
put_custom_typeMethod · 0.45
put_userMethod · 0.45
enqueue_l2_cleanupMethod · 0.45
put_scheduleMethod · 0.45
put_streaming_mvMethod · 0.45
migrate_surrogate_pkMethod · 0.45
put_arrayMethod · 0.45
put_scopeMethod · 0.45

Calls

no outgoing calls