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

Method write_string

kernel/src/vga_buffer.rs:100–110  ·  view source on GitHub ↗
(&mut self, s: &str)

Source from the content-addressed store, hash-verified

98 }
99
100 pub fn write_string(&mut self, s: &str) {
101 for byte in s.bytes() {
102 match byte {
103 // printable ASCII byte or newline
104 0x20..=0x7e | b'\n' => self.write_byte(byte),
105 // not part of printable ASCII range
106 _ => self.write_byte(0xfe),
107 }
108
109 }
110 }
111}
112
113use core::fmt;

Callers 1

write_strMethod · 0.45

Calls 2

write_byteMethod · 0.80
bytesMethod · 0.45

Tested by

no test coverage detected