• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

SamboyCoding / Cpp2IL / 27877222854

20 Jun 2026 04:32PM UTC coverage: 34.68% (+0.4%) from 34.235%
27877222854

push

github

SamboyCoding
Lib: Bump test downloader timeout to 5 minutes

2437 of 8269 branches covered (29.47%)

Branch coverage included in aggregate %.

4852 of 12749 relevant lines covered (38.06%)

187225.41 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

97.3
/LibCpp2IL/BinaryStructures/Il2CppCodeGenModule.cs
1
namespace LibCpp2IL.BinaryStructures;
2

3
public class Il2CppCodeGenModule : ReadableClass
4
{
5
    public ulong moduleName; //pointer
6
    public long methodPointerCount; //ulong
7
    public ulong methodPointers; //pointer
8

9
    //Present in v27.1 and v24.5, but not v27.0
10
    [Version(Min = 27.1f)] [Version(Min = 24.5f, Max = 24.5f)]
11
    public long adjustorThunkCount;
12

13
    [Version(Min = 27.1f)] [Version(Min = 24.5f, Max = 24.5f)]
14
    public ulong adjustorThunks; //Pointer
15

16
    public ulong invokerIndices; //ulong
17
    public ulong reversePInvokeWrapperCount; //ulong
18
    public ulong reversePInvokeWrapperIndices;
19

20
    public long rgctxRangesCount;
21
    public ulong pRgctxRanges;
22

23
    public long rgctxsCount;
24
    public ulong rgctxs;
25
    public ulong debuggerMetadata;
26

27
    [Version(Min = 27, Max = 27.9f)] public ulong customAttributeCacheGenerator; //Removed in v29
28
    [Version(Min = 27)] public ulong moduleInitializer;
29
    [Version(Min = 27)] public ulong staticConstructorTypeIndices;
30
    [Version(Min = 27)] public ulong metadataRegistration; //Per-assembly mode only
31
    [Version(Min = 27)] public ulong codeRegistration; //Per-assembly mode only.
32

33
    private string? _cachedName;
34

35
    public string Name
36
    {
37
        get
38
        {
39
            if (_cachedName == null)
3,330✔
40
            {
41
                var binary = OwningContext.Binary;
1,665✔
42
                _cachedName = binary.ReadStringToNull(binary.MapVirtualAddressToRaw(moduleName));
1,665✔
43
            }
44

45
            return _cachedName!;
3,330✔
46
        }
47
    }
48

49
    public Il2CppTokenRangePair[] RGCTXRanges => OwningContext.Binary.GetRgctxRangePairsForModule(this);
×
50

51
    public override void Read(ClassReadingBinaryReader reader)
52
    {
53
        moduleName = reader.ReadNUint();
1,665✔
54
        methodPointerCount = reader.ReadNInt();
1,665✔
55
        methodPointers = reader.ReadNUint();
1,665✔
56

57
        if (IsAtLeast(24.5f) && IsNot(27))
1,665✔
58
        {
59
            adjustorThunkCount = reader.ReadNInt();
1,463✔
60
            adjustorThunks = reader.ReadNUint();
1,463✔
61
        }
62

63
        invokerIndices = reader.ReadNUint();
1,665✔
64
        reversePInvokeWrapperCount = reader.ReadNUint();
1,665✔
65
        reversePInvokeWrapperIndices = reader.ReadNUint();
1,665✔
66
        rgctxRangesCount = reader.ReadNInt();
1,665✔
67
        pRgctxRanges = reader.ReadNUint();
1,665✔
68
        rgctxsCount = reader.ReadNInt();
1,665✔
69
        rgctxs = reader.ReadNUint();
1,665✔
70
        debuggerMetadata = reader.ReadNUint();
1,665✔
71

72
        if (IsAtLeast(27f))
1,665✔
73
        {
74
            if (IsLessThan(29f))
413✔
75
                customAttributeCacheGenerator = reader.ReadNUint();
126✔
76

77
            moduleInitializer = reader.ReadNUint();
413✔
78
            staticConstructorTypeIndices = reader.ReadNUint();
413✔
79
            metadataRegistration = reader.ReadNUint();
413✔
80
            codeRegistration = reader.ReadNUint();
413✔
81
        }
82
    }
1,665✔
83
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc