Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

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(ret.name == "")
assert(ret.nameLenReq == 6)  -- From [in] example
var ret = foo.Process(ret.nameLenReq)
assert(ret.name == "Hello!")
assert(ret.nameLenReq == 6)