Lev Walkin | 07f8c3e | 2017-11-15 00:21:51 -0800 | [diff] [blame^] | 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. |