blob: 654e45af83ed3d0799844ff9980a1d6cb4a727a7 [file] [log] [blame]
Lev Walkin07f8c3e2017-11-15 00:21:51 -08001
2The function returns a compound structure:
3
4\begin{codesample}
5typedef struct {
6 ssize_t encoded;
7 const asn_TYPE_descriptor_t *failed_type;
8 const void *structure_ptr;
9} asn_enc_rval_t;
10\end{codesample}
11
12\noindent{}In case of unsuccessful encoding, the \code{.encoded} member is set to -1 and
13the other members of the compound structure point to where the encoding has
14failed to proceed further.
15
16In case encoding is successful, the \code{.encoded} member specifies the
17size of the serialized output.