blob: 654e45af83ed3d0799844ff9980a1d6cb4a727a7 [file] [log] [blame]
The function returns a compound structure:
\begin{codesample}
typedef struct {
ssize_t encoded;
const asn_TYPE_descriptor_t *failed_type;
const void *structure_ptr;
} asn_enc_rval_t;
\end{codesample}
\noindent{}In case of unsuccessful encoding, the \code{.encoded} member is set to -1 and
the other members of the compound structure point to where the encoding has
failed to proceed further.
In case encoding is successful, the \code{.encoded} member specifies the
size of the serialized output.