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 Changed 17 years ago by Valik
- Resolution set to No Bug
- Status changed from new to closed
comment:2 Changed 17 years ago by Valik
- Resolution No Bug deleted
- Status changed from closed to reopened
comment:3 Changed 17 years ago by Valik
- Resolution set to Rejected
- Status changed from reopened to closed
Oops, habit of hitting "No Bug". Meant to Reject.
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
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.