MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / as_slice

Method as_slice

euralios_std/src/syscalls.rs:94–98  ·  view source on GitHub ↗
(&self, length: usize)

Source from the content-addressed store, hash-verified

92 }
93
94 pub fn as_slice<T>(&self, length: usize) -> &[T] {
95 unsafe{slice::from_raw_parts(
96 self.as_ptr::<T>(),
97 length)}
98 }
99
100 pub fn as_mut_slice<T>(&mut self, length: usize) -> &mut [T] {
101 unsafe{slice::from_raw_parts_mut(

Callers 3

gopherFunction · 0.80
sys_execFunction · 0.80
open_socketFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected