librpc/ndr: Add ndr_push_steal_switch_value()
authorAndrew Bartlett <abartlet@samba.org>
Wed, 27 Nov 2019 03:01:02 +0000 (16:01 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 12 Dec 2019 02:30:40 +0000 (02:30 +0000)
commite1a15710a4c1c96c9d9fdf932357749cc5ed4d7a
tree9947529a5b38f99116f516ac436c84bf1e803b21
parent603f23b19c90d6a1be4ac50e5984e6f9c8a63ba2
librpc/ndr: Add ndr_push_steal_switch_value()

This will allow generated code to instead push and pop union values onto the
switch_list stack, which is more memory efficient than creating a single large
list to be scannned and eventually discarded.

Merge into unreleased ABI 1.0.0

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13876

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
librpc/ABI/ndr-1.0.0.sigs
librpc/ndr/libndr.h
librpc/ndr/ndr.c