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

Method as_mut_slice

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

Source from the content-addressed store, hash-verified

98 }
99
100 pub fn as_mut_slice<T>(&mut self, length: usize) -> &mut [T] {
101 unsafe{slice::from_raw_parts_mut(
102 self.as_mut_ptr::<T>(),
103 length)}
104 }
105
106 /// Get the virtual address of the start of the memory region
107 pub fn as_u64(&self) -> u64 {

Callers 3

handle_file_readwriteFunction · 0.80
handle_file_readonlyFunction · 0.80
displayFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected