2 Upon unsuccessful termination, the \code{*struct_ptr_ptr}
3 may contain partially decoded data. This data may be useful for debugging
4 (such as by using \code{asn_fprint()}).
5 Don't forget to discard the unused partially decoded data by calling
6 \code{ASN_STRUCT_FREE()} or \code{ASN_STRUCT_RESET()}.
8 The function returns a compound structure:
12 RC_OK, /* Decoded successfully */
13 RC_WMORE, /* More data expected, call again */
14 RC_FAIL /* Failure to decode data */
15 } code; /* Result code */
16 size_t consumed; /* Number of bytes consumed */
20 \noindent{}The \code{.code} member specifies the decoding outcome.
22 \begin{tabular}[h!]{ll}
23 \texttt{RC\_OK} & Decoded successfully and completely \\
24 \texttt{RC\_WMORE} & More data expected, call again \\
25 \texttt{RC\_FAIL} & Failed for good
28 \noindent{}The \code{.consumed} member specifies the amount of \code{buffer} data
29 that was used during parsing, irrespectively of the \code{.code}.