MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / hex

Method hex

scripts/test-impact/profile_map_v2.py:602–609  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

600 self.data.append(char)
601
602 def hex(self, value):
603 self.budget.output(len(value) * 2)
604 for char in value:
605 self.gate.step()
606 self.gate.step()
607 self.data.append(_HEX[char >> 4])
608 self.gate.step()
609 self.data.append(_HEX[char & 15])
610
611 def decimal(self, value):
612 # All emitted integers are <= uint64, so conversion is <=20 digits.

Callers 4

_profile_wireFunction · 0.80
collectFunction · 0.80
stress_fixtureFunction · 0.80
profile_wireFunction · 0.80

Calls 2

outputMethod · 0.80
stepMethod · 0.45

Tested by 1

stress_fixtureFunction · 0.64