From RTSC-Pedia

Jump to: navigation, search
revision tip
—— LANDSCAPE orientation
[printable version]  [offline version]offline version generated on 04-Aug-2010 21:08 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 04-Aug-2010 21:08 UTC
Copyright © 2008 The Eclipse Foundation. All Rights Reserved


Views
Personal tools
package reference