pidl: add support for [string] on fixed size arrays.
commit779380df6a9c79bd64045e7c5d0725b5953dc96f
authorStefan Metzmacher <metze@samba.org>
Mon, 27 Jul 2009 13:52:16 +0000 (27 15:52 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 10 Apr 2012 18:35:23 +0000 (10 20:35 +0200)
tree6b214e912e983bb163e5b1d562b95033dc81a90e
parent1cb51ea4230c655057c157eba10462a2443727b6
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)
(cherry picked from commit 75aeb61c38efe28503991834fb5181537cdffc68)
pidl/lib/Parse/Pidl/NDR.pm
pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
pidl/tests/ndr_string.pl