MCPcopy Create free account
hub / github.com/ActiveState/code / bufferToHex

Function bufferToHex

recipes/Python/577243_Hex_Dump/recipe-577243.py:10–14  ·  view source on GitHub ↗
(buffer, start, count)

Source from the content-addressed store, hash-verified

8bytesRead = len(data)
9
10def bufferToHex(buffer, start, count):
11 accumulator = ''
12 for item in range(count):
13 accumulator += '%02X' % buffer[start + item] + ' '
14 return accumulator
15
16def bufferToAscii(buffer, start, count):
17 accumulator = ''

Callers 1

recipe-577243.pyFile · 0.85

Calls 1

rangeFunction · 0.85

Tested by

no test coverage detected