Modify ↓
#279 closed Feature Request (Rejected)
AddressOfVar($VariableName), SizeOfVar($VariableName)
| Reported by: | Zedna | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | Severity: | None | |
| Keywords: | Cc: |
Description
These new functiona will return memory Address/Size Of given AutoIt's Variable
so we can use some pointers/typecast tricks.
For example create structure "over" that memory and then get data in another type
$MemPointer = AddressOfVar($a)
$MemSize = SizeOfVar($a)
$struct = DllStructCreate("byte[" & $MemSize & "]", $MemPointer)
$data = DllStructGetData($struct, 1)
I'm sure there will be another uses of this functionality
together with AutoIt's DllCall() and structures and memory API functions.
Attachments (0)
Change History (4)
comment:1 by , 18 years ago
| Resolution: | → No Bug |
|---|---|
| Status: | new → closed |
comment:2 by , 18 years ago
| Resolution: | No Bug |
|---|---|
| Status: | closed → reopened |
comment:3 by , 18 years ago
| Resolution: | → Rejected |
|---|---|
| Status: | reopened → closed |
Oops, habit of hitting "No Bug". Meant to Reject.
Note:
See TracTickets
for help on using tickets.

AutoIt doesn't need typecast tricks. Besides, on the rare occasion that you do need to cast something, there are functions like Int() and the like to do that. Further, this will never work, AutoIt's types aren't simple. This isn't like overlaying a double onto an int64 to work with the raw bits. The Variant class in AutoIt is highly complex.