Skip to content

Instantly share code, notes, and snippets.

View qi7chen's full-sized avatar
🎯
Focusing

Johnnie qi7chen

🎯
Focusing
  • Ubisoft
  • Chengdu
View GitHub Profile
@xatest
xatest / coc_2.md
Created January 10, 2013 18:00
Clash of Clans攻略(二):进攻、奖杯与天梯~

#引言 防守可以单写一篇来介绍,所以本篇只谈进攻。进攻与奖杯,奖杯与天梯又密切关联,所以本篇将会一起介绍。

Native TrySZSort
FCIMPL4(INT32, ArrayHelper::TrySZSort, ArrayBase * keys, ArrayBase * items, UINT32 left, UINT32 right)
//in an array is not single-dimensional with initial index, null is not sorted
if (keys->GetRank() != 1 || keys->GetLowerBoundsPtr()[0] != 0)
return FALSE;
// Getting array element type
TypeHandle keysTH = keys->GetElementTypeHandle();
// If it is not an in-built primitive type