ReClass.NET icon indicating copy to clipboard operation
ReClass.NET copied to clipboard

Feature Request: Use variables for array sizes

Open pitoriex opened this issue 3 years ago • 0 comments

Hello, if this is already somehow possible, please tell me how because I'd love to use it. It'd be great if we could use defined variables as sizes for arrays. You often come across a structure that looks like this:

struct some_struct_t {
    std::uint32_t entries_count;
    void* entries[entries_count];
};

Is there a way to accurately replicate this structure in ReClass? If yes, please tell me how, if not, would it be possible to add it to ReClass? I'd do it myself but I'm not too fond with C#.

Edit: Another example:

struct some_struct_t {
    void* begin_data;
    void* end_data;
};

What I've done so far when I have a structure like this is create a Pointer at begin_data and then an array to class instances with a size that matches the count of that specific occurrence, but I'd be great if we could enter [parent.end_data - parent.begin_data] as array size so it automatically shows the correct array when reusing the structure for different instances.

Thanks!

pitoriex avatar Dec 19 '21 11:12 pitoriex