I want to print a vec using ascii format byte by byte.
let slice1 = b"abcdefg";
I can print the struct like this:
(lldb) p slice1
(&[u8]) slice1 = {
data_ptr = 0x00007ff9abe00020
length = 7
}
When I try to print the whole data:
(lldb) p/c *slice1.data_ptr
(u8) *data_ptr = 'a'
Is there a way to print out all its seven bytes?