Android Anti-cheat with buffer?


So I was looking for how to make an anticheat program that prevents hackers from manipulating values. Then my friend told me I can use buffers to change the value's memory location, making hackers harder to find the values they want. The problem is I never knew what that is, so I don't know how to do that.

Could you tell me how can I use this?