I am trying to convert values of type int32 of variable size to a hex string with minimal length and 0 padding.
Example: 434 = 01 B2
There are several C# ways, but they all have fixed size, depending on the value type, (Example: Int32 will always give a 4 bytes value like 00 00 00 01 for the number 1).
One can write a code to do it, but I assume there is a shorter way.
thanks
samtal