| 1908 | let kInvalidIndex = -1; |
| 1909 | let kMetadataIndexMaskA = (1 << (kMetadataIndexBits + kMetadataImageIndexExtraShiftBitsA)) - 1; |
| 1910 | class Il2CppImage extends NativeStruct_1.NativeStruct { |
| 1911 | name() { |
| 1912 | return il2cppApi_1.il2cppApi.il2cpp_image_get_name(this).readCString(); |
| 1913 | } |
| 1914 | token() { |
| 1915 | return this.add(0x40).readU32(); |
| 1916 | } |
| 1917 | IsInterpreterImage() { |
| 1918 | let index = this.token(); |
| 1919 | // log("got token "+index); |
| 1920 | return index !== kInvalidIndex && (index & ~kMetadataIndexMaskA) !== 0; |
| 1921 | } |
| 1922 | nameNoExt() { |
| 1923 | let name1 = this.name(); |
| 1924 | return name1.replace(".dll", ""); |
| 1925 | } |
| 1926 | typeStart() { |
| 1927 | return this.get("typeStart").readPointer().toInt32(); |
| 1928 | } |
| 1929 | typeCount() { |
| 1930 | return il2cppApi_1.il2cppApi.il2cpp_image_get_class_count(this); |
| 1931 | // return this.getOffsetTypeCount(); |
| 1932 | } |
| 1933 | getOffsetTypeCount() { |
| 1934 | if (dumpconfig_1.UNITY_VER === dumpconfig_1.UnityVer.V_2020) { |
| 1935 | return this.add(24).readPointer().toInt32(); |
| 1936 | } |
| 1937 | else { |
| 1938 | return this.get("typeCount").readPointer().toInt32(); |
| 1939 | } |
| 1940 | } |
| 1941 | getClass(index) { |
| 1942 | return il2cppApi_1.il2cppApi.il2cpp_image_get_class(this, index); |
| 1943 | } |
| 1944 | get(params) { |
| 1945 | return this.add((0, structItem_1.getStructOffset)(il2CppImage_struct, params)); |
| 1946 | } |
| 1947 | } |
| 1948 | exports.Il2CppImage = Il2CppImage; |
| 1949 | },{"../../dumpconfig":4,"../il2cppApi":11,"./NativeStruct":21,"./structItem":22}],18:[function(require,module,exports){ |
| 1950 | "use strict"; |
nothing calls this directly
no outgoing calls
no test coverage detected