From 1463e687e36c8dd404d33c6ef1cba61b574adc1e Mon Sep 17 00:00:00 2001 From: Petteri Aimonen Date: Sun, 26 Aug 2012 10:05:46 +0300 Subject: Revert "Add pb_decode_noinit and use it from pb_dec_submessage." The patch breaks default values inside submessage arrays (I think). Have to add test cases and check back. This reverts commit f1d7640fe1be0f150f604c72108ea516222c2505. --- docs/reference.rst | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'docs/reference.rst') diff --git a/docs/reference.rst b/docs/reference.rst index 371c155a..ec9aec5d 100644 --- a/docs/reference.rst +++ b/docs/reference.rst @@ -322,16 +322,6 @@ In addition to EOF, the pb_decode implementation supports terminating a message For optional fields, this function applies the default value and sets *has_* to false if the field is not present. -pb_decode_noinit ----------------- -Same as `pb_decode`_, except does not apply the default values to fields. :: - - bool pb_decode_noinit(pb_istream_t *stream, const pb_field_t fields[], void *dest_struct); - -(parameters are the same as for `pb_decode`_.) - -The destination structure should be filled with zeros before calling this function. Doing a *memset* manually can be slightly faster than using `pb_decode`_ if you don't need any default values. - pb_skip_varint -------------- Skip a varint_ encoded integer without decoding it. :: -- cgit 1.2.3-korg