From RTSC-Pedia
revision tip
LANDSCAPE orientation[printable version] [offline version] | offline version generated on 02-Oct-2009 22:10 UTC |
XDCscript - Vector-Object.$addrof
Get address of vector element
Contents |
Synopsis
| var addr = «vec».$addrof(«index»); |
Description
This method returns an object of the Ptr type that represents the address of the element «vec»[«index»] on the target. Such an object can be used at configuration time to refer to an address that is generally not known at the configuration time.
The expression «vec».$addrof(«vec».length) can be used to refer to the first address after «vec»[«vec».length - 1].
See also
XDCscript - Typed-Object | Objects specified by the RTSC Interface Definition Language |
XDCscript - Vector-Object | A typed JavaScript array |
[printable version] [offline version] | offline version generated on 02-Oct-2009 22:10 UTC |
Copyright © 2008 The Eclipse Foundation. All Rights Reserved