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

Developer

resources

IDL sequence in Lua

Sequences of any 8-bit primitive type are mapped to string. Sequences of any 16-bit primitive type are mapped to wstring. Sequences of any other type are mapped to a table.

IDL type Lua type
sequence of char string
sequence of octet string
sequence of wchar wstring
sequence of short wstring
sequence of unsigned short wstring
sequence of long table<number>

For example, given the declaration:

sequence<long> lngSeq;

a sequence instance might be:

local seq = {1,2,3,4,5,6}