private PerformBinarySearch ( uint key, uint keySize, uint start, uint structSize, uint numStructs, uint keyOffset, SearchOptions options ) : uint | ||
key | uint | |
keySize | uint | |
start | uint | |
structSize | uint | |
numStructs | uint | |
keyOffset | uint | |
options | SearchOptions | |
return | uint |
// finds an object's common property table private uint CP__Tab(Engine e, uint obj, uint id) { if (Z__Region(e, obj) != 1) { e.NestedCall(rt_err_fn, 23, obj); return(0); } uint otab = e.image.ReadInt32(obj + 16); if (otab == 0) { return(0); } uint max = e.image.ReadInt32(otab); otab += 4; return(e.PerformBinarySearch(id, 2, otab, 10, max, 0, SearchOptions.None)); }
// finds an object's common property table private uint CP__Tab(Engine e, uint obj, uint id) { if (Z__Region(e, obj) != 1) { e.NestedCall(rt_err_fn, 23, obj); return 0; } uint otab = e.image.ReadInt32(obj + 16); if (otab == 0) return 0; uint max = e.image.ReadInt32(otab); otab += 4; return e.PerformBinarySearch(id, 2, otab, 10, max, 0, SearchOptions.None); }