blob: 30d80dec853cb83a119a10431d4ee29198fb1f08 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
pub fn format_clang(bytecode: &[u8]) -> Vec<u8> {
let mut output = String::new();
for chunk in bytecode.chunks(16) {
for byte in chunk {
output.push_str(&format!("0x{byte:02x}, "));
}
output.push('\n');
}
return output.into_bytes();
}
|