Add -S option to pvget/pvmonitor to stringify byte arrays#1
Conversation
|
Some comments so I understand this better.
What happens if we encounter a legitimate 0x00 byte within the binary data? Does it exit prematurely?
|
Since it is using an iterator and checking against
This is a good point. Initially I was going to have it apply to pvUByte as well, but looking at the
This is a good point; perhaps I should escape unprintable chars? Then they'd be printed as Also worth noting that non-ASCII chars encoded with UTF-8 (or ANY chars encoded with UTF-16/32) will be printed incorrectly. I dont think we have to worry much about encoding though,
Good point, I will apply this change |
|
Seems like I can just use |
6aadc55 to
4d470d2
Compare
This emulates the behavior of the caget -S option. Byte arrays are displayed as strings.
4d470d2 to
3f4df3a
Compare
|
@mskoufis this is how it behaves now with unprintable chars: |
This emulates the behavior of the caget -S option. Byte arrays are displayed as strings.
Requires slac-epics/pvAccessCPP#2