Hi all,
I need your help in understanding the Counter64 representation as
mentioned in "Understanding SNMP MIBs by DAVID PERKINS, page 51". The
book quotes an example the BER serialization of value 56782 of type
COUNTER 64 is '9f760300ddce'h.
In the above example, value 9f76 is the value of the tag for Counter 64.
03 is the length of the value, and 00ddce is the hexadecimal
representation of 56782.
My question are
1. why is the length field is represented as 03 i.e. one byte, instead
of 0003 (2 bytes is reserved for length in Opaque)?
2. To represent value of 56782 in hexadecimal it is enough if we
represent by 'ddce'h. Why is it represented as '00ddce'h? Which is
taking 3 bytes in length?
3. Can we use the following tag values for other 64bit data types?
Counter64 9f76,
Signed64 9f7A,
Unsigned64 9f7B.
Your clarifications towards understanding this C64 textual convention
and data value representation in the Opaque stream will be greatly
appreciated.
Thanks
Mahesh