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

Method write_str

euralios_std/src/debug.rs:7–17  ·  view source on GitHub ↗
(&mut self, s: &str)

Source from the content-addressed store, hash-verified

5
6impl fmt::Write for Writer {
7 fn write_str(&mut self, s: &str) -> fmt::Result {
8 unsafe {
9 asm!("mov rax, 2", // syscall function
10 "syscall",
11 in("rdi") s.as_ptr(), // First argument
12 in("rsi") s.len(), // Second argument
13 out("rcx") _,
14 out("r11") _);
15 }
16 Ok(())
17 }
18}
19
20pub fn _print(args: fmt::Arguments) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected