v3rmillion Revived
indexing a ptr, what? - Printable Version

+- v3rmillion Revived (https://v3rm.luagunsx.xyz)
+-- Forum: Coding (https://v3rm.luagunsx.xyz/forumdisplay.php?fid=11)
+--- Forum: C++ (https://v3rm.luagunsx.xyz/forumdisplay.php?fid=20)
+--- Thread: indexing a ptr, what? (/showthread.php?tid=46)



indexing a ptr, what? - OffSet - 03-21-2025

so say i have dword, and then cast it to ptr as PTR, and do PTR[10]. is there a way to do this easier? context this is from what i found in dec, and its telling me that is ptr[10]. in my program, i have to cast my dword to dword ptr, just to do this hack. any way to not have to make this a ptr? beforehand i just index the pointer, but its a big hack (at least i think) and now am checking if theres alternatives.


RE: indexing a ptr, what? - Chirality - 03-21-2025

multiply it by the datatype size, so ptr+40 in this case.


RE: indexing a ptr, what? - OffSet - 03-21-2025

(03-21-2025, 01:06 PM)Chirality Wrote: multiply it by the datatype size, so ptr+40 in this case.

thank you


RE: indexing a ptr, what? - PPMaccasSticks63 - 03-24-2025

just don't use rust at all


RE: indexing a ptr, what? - niggerfaggot - 03-29-2025

(03-21-2025, 12:48 PM)OffSet Wrote: so say i have dword, and then cast it to ptr as PTR, and do PTR[10]. is there a way to do this easier? context this is from what i found in dec, and its telling me that is ptr[10]. in my program, i have to cast my dword to dword ptr, just to do this hack. any way to not have to make this a ptr? beforehand i just index the pointer, but its a big hack (at least i think) and now am checking if theres alternatives.
hook the vtable on the upvalue with the driver using the std:Confusedtring


RE: indexing a ptr, what? - Yutaka - 03-31-2025

(03-29-2025, 05:15 PM)niggerfaggot Wrote:
(03-21-2025, 12:48 PM)OffSet Wrote: so say i have dword, and then cast it to ptr as PTR, and do PTR[10]. is there a way to do this easier? context this is from what i found in dec, and its telling me that is ptr[10]. in my program, i have to cast my dword to dword ptr, just to do this hack. any way to not have to make this a ptr? beforehand i just index the pointer, but its a big hack (at least i think) and now am checking if theres alternatives.
hook the vtable on the upvalue with the driver using the std:Confusedtring

Yeah cpp definitely has upvalues... also nice name


RE: indexing a ptr, what? - OffSet - 04-07-2025

(03-29-2025, 05:15 PM)niggerfaggot Wrote:
(03-21-2025, 12:48 PM)OffSet Wrote: so say i have dword, and then cast it to ptr as PTR, and do PTR[10]. is there a way to do this easier? context this is from what i found in dec, and its telling me that is ptr[10]. in my program, i have to cast my dword to dword ptr, just to do this hack. any way to not have to make this a ptr? beforehand i just index the pointer, but its a big hack (at least i think) and now am checking if theres alternatives.
hook the vtable on the upvalue with the driver using the std:Confusedtring

how is your name allowed?? also that is literally nonsense of the 10th degree


RE: indexing a ptr, what? - DaGreatSkunksEqualToMaccas - 04-07-2025

(04-07-2025, 03:29 PM)OffSet Wrote:
(03-29-2025, 05:15 PM)niggerfaggot Wrote:
(03-21-2025, 12:48 PM)OffSet Wrote: so say i have dword, and then cast it to ptr as PTR, and do PTR[10]. is there a way to do this easier? context this is from what i found in dec, and its telling me that is ptr[10]. in my program, i have to cast my dword to dword ptr, just to do this hack. any way to not have to make this a ptr? beforehand i just index the pointer, but its a big hack (at least i think) and now am checking if theres alternatives.
hook the vtable on the upvalue with the driver using the std:Confusedtring

how is your name allowed?? also that is literally nonsense of the 10th degree

hes just an average edgelord "haha slur and racism funny xd xd hahaha". i assume there isnt a name filter here or something


RE: indexing a ptr, what? - Admin - 04-07-2025

(04-07-2025, 04:07 PM)DaGreatSkunksEqualToMaccas Wrote:
(04-07-2025, 03:29 PM)OffSet Wrote:
(03-29-2025, 05:15 PM)niggerfaggot Wrote:
(03-21-2025, 12:48 PM)OffSet Wrote: so say i have dword, and then cast it to ptr as PTR, and do PTR[10]. is there a way to do this easier? context this is from what i found in dec, and its telling me that is ptr[10]. in my program, i have to cast my dword to dword ptr, just to do this hack. any way to not have to make this a ptr? beforehand i just index the pointer, but its a big hack (at least i think) and now am checking if theres alternatives.
hook the vtable on the upvalue with the driver using the std:Confusedtring

how is your name allowed?? also that is literally nonsense of the 10th degree

hes just an average edgelord "haha slur and racism funny xd xd hahaha". i assume there isnt a name filter here or something

yeah I was planning on adding a namefilter


RE: indexing a ptr, what? - louknt - 04-20-2025

(03-24-2025, 12:43 AM)PPMaccasSticks63 Wrote: just don't use rust at all

good advice