delphi指针问题

ojc520520 ojc520520 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
function getmonsterObj():pint;//这里想返回数组中的某个成员这样可以吗?
var
monsterarr,GetMonsterList:pint;
count:integer;
i,obj:integer;

begin
GetMonsterList:= PINT(PINT(PINT(PINT(PINT($13a6888)^+$24)^+$c)^+$74)^+$14);
count:= pint(pint(Getmonsterlist)^+$14)^;
monsterarr:= pint(pint(getmonsterlist)^+$8);//这里指向数组的首地址。
for I := 0 to count do
obj:=monsterarr[i];//这里怎么取出数组中的值;
begin
if obj>0 then
begin

end;
end;

pint和pinteger好像不同是吗?
pint(pint(getmonsterlist)^+8);//这个是不是加上了8个sizeof(integer)的长度;
pint(getmonsterlist+8);//这样是不是只加上了8个字节的长度;


有点小纠结,忘高手能帮我回答以上绿色字体的部分,小弟在这不胜感激。
...全文
评论 14
收藏 已收藏
分享
返回顶部