MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / hexString

Method hexString

Source/UIComponents/CtrlrMIDI/CtrlrMIDIBuffer.cpp:186–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186const String CtrlrMidiBufferStatus::hexString(const String &hex)
187{
188 String ret;
189 MemoryBlock mb;
190 mb.loadFromHexString (hex);
191 uint8 *ptr = (uint8*)mb.getData();
192 for (size_t i=0; i<mb.getSize(); i++)
193 {
194 const String bis = BigInteger (*(ptr+i)).toString(2, 8);
195 ret << String::formatted ("[0x%.2x/%.3d/", *(ptr+i), *(ptr+i)) << bis.substring(0,4) << ":" << bis.substring(4,8) << "] ";
196 }
197
198 return (ret.trim());
199}
200
201void CtrlrMidiBufferStatus::paint(Graphics &g)
202{

Callers

nothing calls this directly

Calls 7

formattedFunction · 0.85
loadFromHexStringMethod · 0.45
getDataMethod · 0.45
getSizeMethod · 0.45
toStringMethod · 0.45
substringMethod · 0.45
trimMethod · 0.45

Tested by

no test coverage detected