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

Function utf16_encode

dstack-mr/src/util.rs:13–18  ·  view source on GitHub ↗
(input: &str)

Source from the content-addressed store, hash-verified

11}
12
13pub(crate) fn utf16_encode(input: &str) -> Vec<u8> {
14 input
15 .encode_utf16()
16 .flat_map(|c| c.to_le_bytes().into_iter())
17 .collect()
18}
19
20pub(crate) fn debug_print_log(name: &str, log: &[Vec<u8>]) {
21 debug!("{name} event log:");

Callers 3

boot_option_bytesFunction · 0.85
measure_tdx_efi_variableFunction · 0.85
measure_cmdlineFunction · 0.85

Calls 1

into_iterMethod · 0.80

Tested by

no test coverage detected