Resources | Resources |



IDL rout parameter of a method in JSON

Callers of a method with an rout parameter must specify the length of the output string as an input parameter. For example:

interface IFoo
  AEEResult Process(rout string name);

is used as:

var ret = foo.Process(0)
assert( == "")
assert(ret.nameLenReq == 6)  -- From [in] example
var ret = foo.Process(ret.nameLenReq)
assert( == "Hello!")
assert(ret.nameLenReq == 6)