Le 02/12/15 16:14, Zheng, Kai a écrit :
> Hi,
>
> Any suggestion for this? Below is my initial output, simple and short data
> will be appended for each item, long data will be sampled.
> The offsets are only useful for debugging and will not show by default.
> Thanks.
Sounds a very good idea. Keep the tags in hex format (48 is far less
readable than 0x30), add the length in deimal format, and also print the
values when it's a non constructed type. Like :
Sequence[0x30, 1509]
OID[0x06, 7] : "1.2.4.3"
Tag:0[0xA0, 1494]
Sequence[0x30, 1492]
Integer[0x02,2] : 341
...
I have used lowercased name for readability.