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

Function compareMemory

Source/Core/CtrlrUtilities.cpp:835–852  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

833}
834
835bool compareMemory(const MemoryBlock &haystack, const MemoryBlock &needle)
836{
837 if (haystack.getSize() != needle.getSize())
838 return (false);
839
840 for (size_t i = 0; i<needle.getSize(); i++)
841 {
842 if ((uint8)haystack[i] == midiByteMask)
843 {
844 continue;
845 }
846 else if ((uint8)haystack[i] != (uint8)needle[i])
847 {
848 return (false);
849 }
850 }
851 return (true);
852}
853
854const BigInteger memoryToBits(const MemoryBlock &mb)
855{

Callers 4

matchSysExMethod · 0.85
cacheMatchSysExMethod · 0.85
matchMethod · 0.85
cacheMatchMethod · 0.85

Calls 1

getSizeMethod · 0.45

Tested by

no test coverage detected