openvisualizer_utils Module

openvisualizer.openvisualizer_utils.buf2int(buf)

Converts some consecutive bytes of a buffer into an integer. Big-endianness is assumed.

Parameters:buf – [in] Byte array.
openvisualizer.openvisualizer_utils.byteinverse(b)
openvisualizer.openvisualizer_utils.calculateCRC(payload)
openvisualizer.openvisualizer_utils.calculateFCS(rpayload)
openvisualizer.openvisualizer_utils.calculatePseudoHeaderCRC(src, dst, length, nh, payload)

See these references:

openvisualizer.openvisualizer_utils.formatAddr(addr)
openvisualizer.openvisualizer_utils.formatBuf(buf)

Format a bytelist into an easy-to-read string. For example:

[0xab,0xcd,0xef,0x00] -> '(4B) ab-cd-ef-00'

openvisualizer.openvisualizer_utils.formatCrashMessage(threadName, error)
openvisualizer.openvisualizer_utils.formatCriticalMessage(error)
openvisualizer.openvisualizer_utils.formatIPv6Addr(addr)
openvisualizer.openvisualizer_utils.formatStringBuf(buf)
openvisualizer.openvisualizer_utils.formatThreadList()
openvisualizer.openvisualizer_utils.hex2buf(s)

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].

Previous topic

openType Package

Next topic

RPL Package

This Page