| |

VerySource

 Forgot password?
 Register
Search
Author: wwb0000

Is there any way to force access to private data members

[Copy link]

0

Threads

11

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-3-20 06:00:01
| Show all posts
If you have physical strength
* (Private variable type *) (((char *)&object name) + private variable offset bytes) = how much;
Should be ok
Reply

Use magic Report

0

Threads

11

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-3-20 13:00:01
| Show all posts
In addition, project properties-> linker-> debug-> remove private symbols, I don't know what it is.
Reply

Use magic Report

2

Threads

6

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

 Author| Post time: 2020-3-21 21:45:01
| Show all posts
Themaster20404method sounds good, let me try
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-3-23 00:30:01
| Show all posts
Can press
master20404method

However, the data alignment is compiler-specific (and settings) and platform specific

Be familiar with the format of pe
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list