654e45af83ed3d0799844ff9980a1d6cb4a727a7
[com/asn1c.git] / doc / docsrc / asn_enc_rval.inc
1
2 The function returns a compound structure:
3
4 \begin{codesample}
5 typedef 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
13 the other members of the compound structure point to where the encoding has
14 failed to proceed further.
15
16 In case encoding is successful, the \code{.encoded} member specifies the
17 size of the serialized output.