Appends a fixed-length, null-padded string to the data buffer.
(data: &mut Vec<u8>, s: &str)
| 366 | |
| 367 | /// Appends a fixed-length, null-padded string to the data buffer. |
| 368 | fn append_fixed_string(data: &mut Vec<u8>, s: &str) { |
| 369 | let mut s_bytes = s.as_bytes().to_vec(); |
| 370 | s_bytes.resize(FIXED_STRING_LEN, 0); |
| 371 | data.extend_from_slice(&s_bytes); |
| 372 | } |
| 373 | |
| 374 | /// Appends a serialized QEMU loader command to the data buffer. |
| 375 | fn qemu_loader_append(data: &mut Vec<u8>, cmd: LoaderCmd) { |
no test coverage detected