Modify

Opened 18 years ago

Closed 18 years ago

Last modified 4 years ago

#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 Valik, 18 years ago

Resolution: No Bug
Status: newclosed

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.

comment:2 by Valik, 18 years ago

Resolution: No Bug
Status: closedreopened

comment:3 by Valik, 18 years ago

Resolution: Rejected
Status: reopenedclosed

Oops, habit of hitting "No Bug". Meant to Reject.

comment:4 by TicketCleanup, 18 years ago

Version: 3.2.10.0

Automatic ticket cleanup.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.