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)
committerStefan Metzmacher <metze@samba.org>
Mon, 27 Jul 2009 15:51:32 +0000 (17:51 +0200)
commit7ccc9a6ef563cc855752b4e74152420b9be5af43
treeeeef8cf5ee5bc648b79c7dbf9eee903dac2ce39b
parentb7c003c09c06ef5a23beb0928affaba75f65587c
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
pidl/lib/Parse/Pidl/NDR.pm
pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm
pidl/tests/ndr_string.pl