{"action":"opened","issue":{"url":"https://api.github.com/repos/Infocatcher/AkelPad_scripts/issues/8","labels_url":"https://api.github.com/repos/Infocatcher/AkelPad_scripts/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/Infocatcher/AkelPad_scripts/issues/8/comments","events_url":"https://api.github.com/repos/Infocatcher/AkelPad_scripts/issues/8/events","html_url":"https://github.com/Infocatcher/AkelPad_scripts/issues/8","id":54849104,"number":8,"title":"[meta, x64] Use _PtrAdd() to calculate memory offsets","user":{"login":"Infocatcher","id":601488,"avatar_url":"https://avatars.githubusercontent.com/u/601488?v=3","gravatar_id":"","url":"https://api.github.com/users/Infocatcher","html_url":"https://github.com/Infocatcher","followers_url":"https://api.github.com/users/Infocatcher/followers","following_url":"https://api.github.com/users/Infocatcher/following{/other_user}","gists_url":"https://api.github.com/users/Infocatcher/gists{/gist_id}","starred_url":"https://api.github.com/users/Infocatcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Infocatcher/subscriptions","organizations_url":"https://api.github.com/users/Infocatcher/orgs","repos_url":"https://api.github.com/users/Infocatcher/repos","events_url":"https://api.github.com/users/Infocatcher/events{/privacy}","received_events_url":"https://api.github.com/users/Infocatcher/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Infocatcher/AkelPad_scripts/labels/compatibility","name":"compatibility","color":"FFAA00"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-20T06:36:07Z","updated_at":"2015-01-20T06:36:07Z","closed_at":null,"body":"Example from SearchReplace.js:\r\n```js\r\nfunction RectToArray(lpRect, rcRect)\r\n{\r\n  rcRect.left=AkelPad.MemRead(_PtrAdd(lpRect, 0) /*offsetof(RECT, left)*/, 3 /*DT_DWORD*/);\r\n  rcRect.top=AkelPad.MemRead(_PtrAdd(lpRect, 4) /*offsetof(RECT, top)*/, 3 /*DT_DWORD*/);\r\n  rcRect.right=AkelPad.MemRead(_PtrAdd(lpRect, 8) /*offsetof(RECT, right)*/, 3 /*DT_DWORD*/);\r\n  rcRect.bottom=AkelPad.MemRead(_PtrAdd(lpRect, 12) /*offsetof(RECT, bottom)*/, 3 /*DT_DWORD*/);\r\n  return rcRect;\r\n}\r\n```"}}