Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SoftbearStudios/bitcode
/ as_slice
Method
as_slice
src/fast.rs:71–73 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
69
}
70
71
pub fn as_slice(&self) -> &[T] {
72
unsafe { std::slice::from_raw_parts(self.start, self.len()) }
73
}
74
75
pub fn as_mut_slice(&mut self) -> &mut [T] {
76
unsafe { std::slice::from_raw_parts_mut(self.start, self.len()) }
Callers
15
bench_bincode_deserialize
Function · 0.80
bench_bitcode_deserialize
Function · 0.80
collect_into
Method · 0.80
unpack_bytes
Function · 0.80
test
Function · 0.80
bench_unpack_arithmetic
Function · 0.80
test_pack_bytes_less_than_n
Function · 0.80
default
Method · 0.80
with_allocation
Method · 0.80
set_owned
Method · 0.80
mut_owned
Method · 0.80
drop
Method · 0.80
Calls
2
sub_ptr
Function · 0.85
len
Method · 0.45
Tested by
3
test_pack_bytes_less_than_n
Function · 0.64
test
Function · 0.64
test
Function · 0.64