MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / write_to

Method write_to

dstack-mr/src/uefi_var.rs:34–40  ·  view source on GitHub ↗
(self, buf: &mut Vec<u8>)

Source from the content-addressed store, hash-verified

32
33impl DevicePathNode<'_> {
34 fn write_to(self, buf: &mut Vec<u8>) {
35 let len = 4 + self.data.len();
36 buf.push(self.r#type);
37 buf.push(self.subtype);
38 buf.extend_from_slice(&(len as u16).to_le_bytes());
39 buf.extend_from_slice(self.data);
40 }
41}
42
43/// `END_ENTIRE_DEVICE_PATH` terminator.

Callers 1

boot_option_bytesFunction · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected