pidl: add support for [string] on fixed size arrays.
authorStefan Metzmacher <metze@samba.org>
Mon, 27 Jul 2009 13:52:16 +0000 (15:52 +0200)
committerKarolin Seeger <kseeger@samba.org>
Sat, 7 Apr 2012 14:25:55 +0000 (16:25 +0200)
commit75aeb61c38efe28503991834fb5181537cdffc68
tree814ed7af8cac86f0a4dbe03687e23e5c60ff57ee
parent0cc91c98f6d311a92aa308e9fcbac252c96d590d
pidl: add support for [string] on fixed size arrays.

midl also supports this:

struct {
long l1;
[string] wchar_t str[16];
long l2;
};

Where the wire size of str is encoded like a length_is() header:
4-byte offset == 0;
4-byte array length;

The strings are zero terminated.

metze
(cherry picked from commit 7ccc9a6ef563cc855752b4e74152420b9be5af43)
pidl/lib/Parse/Pidl/NDR.pm
pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
pidl/tests/ndr_string.pl