MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / Memcmp

Method Memcmp

src/Array.cpp:228–237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228int ArrayBase::Memcmp(ArrayBase *inOther)
229{
230 int bytesA = length * GetElementSize();
231 int bytesB = inOther->length * inOther->GetElementSize();
232 int common = bytesA<bytesB ? bytesA : bytesB;
233 int result = memcmp(mBase, inOther->mBase, common);
234 if (result)
235 return result;
236 return bytesA - bytesB;
237}
238
239void ArrayBase::Blit(int inDestElement, ArrayBase *inSourceArray, int inSourceElement, int inElementCount)
240{

Callers

nothing calls this directly

Calls 2

GetElementSizeFunction · 0.50
memcmpFunction · 0.50

Tested by

no test coverage detected