MCPcopy Create free account
hub / github.com/eholk/Boot2Rust / write

Method write

src/uefi/mod.rs:80–95  ·  view source on GitHub ↗
(&self, str: &str)

Source from the content-addressed store, hash-verified

78
79 #[no_split_stack]
80 fn write(&self, str: &str) {
81 let mut buf = [0u16, ..4096];
82
83 let mut i = 0;
84 while i < buf.len() && i < str.len() {
85 // TODO: make sure the characters are all ascii
86 buf[i] = str[i] as u16;
87 i += 1;
88 }
89 buf[buf.len() - 1] = 0;
90
91 unsafe {
92 let (p, _) = unpack(buf);
93 self.write_raw(p);
94 }
95 }
96}
97
98pub trait SimpleTextInput {

Callers 1

efi_mainFunction · 0.80

Implementers 1

mod.rssrc/uefi/mod.rs

Calls 2

unpackFunction · 0.85
write_rawMethod · 0.80

Tested by

no test coverage detected