Converts some consecutive bytes of a buffer into an integer. Big-endianness is assumed.
Parameters: | buf – [in] Byte array. |
---|
See these references:
Format a bytelist into an easy-to-read string. For example:
[0xab,0xcd,0xef,0x00] -> '(4B) ab-cd-ef-00'
Convert a string of hex caracters into a byte list. For example:
'abcdef00' -> [0xab,0xcd,0xef,0x00]
Parameters: | s – [in] The string to convert |
---|---|
Returns: | A list of integers, each element in [0x00..0xff]. |