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

Method write_str

euralios_std/src/io.rs:16–26  ·  view source on GitHub ↗
(&mut self, s: &str)

Source from the content-addressed store, hash-verified

14
15impl fmt::Write for Writer<'_> {
16 fn write_str(&mut self, s: &str) -> fmt::Result {
17 if s.len() == 0 {
18 return Ok(());
19 }
20 _ = rcall(self.handle,
21 message::WRITE,
22 (s.len() as u64).into(),
23 syscalls::MemoryHandle::from_u8_slice(s.as_ref()).into(),
24 None);
25 Ok(())
26 }
27}
28
29pub fn _print(handle: &CommHandle, args: fmt::Arguments) {

Callers

nothing calls this directly

Calls 3

rcallFunction · 0.85
lenMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected