librpc/ndr: add ndr_pull_append/pop()
authorStefan Metzmacher <metze@samba.org>
Sat, 21 Sep 2013 00:28:33 +0000 (02:28 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 11 Feb 2014 15:02:14 +0000 (16:02 +0100)
commit7b5717058a7d7a93cda712efc7622a87d3980e48
treeea4513ddd3e01089168bea938ff65bbc691095ad
parent53e0ceddff7a4e668242a2db53764fa962c71163
librpc/ndr: add ndr_pull_append/pop()

They can be used to parse a fragmented NDR byte stream.

ndr_pull_append() appends more data that can be processed
and ndr_pull_pop() removed already processed data.

This will be used to implement dcerpc pipes, where we can get
a verify large amount of pipe chunks, once we processed a chunk
we can forget about the related data, but we may need to keep some
bytes in order to get the alignment right.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
librpc/ndr/libndr.h
librpc/ndr/ndr.c