uper_decoder.h
Go to the documentation of this file.
1 /*-
2  * Copyright (c) 2005-2017 Lev Walkin <vlm@lionet.info>. All rights reserved.
3  * Redistribution and modifications are permitted subject to BSD license.
4  */
5 #ifndef _UPER_DECODER_H_
6 #define _UPER_DECODER_H_
7 
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 struct asn_TYPE_descriptor_s; /* Forward declaration */
16 
17 /*
18  * Unaligned PER decoder of a "complete encoding" as per X.691 (08/2015) #11.1.
19  * On success, this call always returns (.consumed >= 1), as per #11.1.3.
20  */
22  const struct asn_codec_ctx_s *opt_codec_ctx,
23  const struct asn_TYPE_descriptor_s *type_descriptor, /* Type to decode */
24  void **struct_ptr, /* Pointer to a target structure's pointer */
25  const void *buffer, /* Data to be decoded */
26  size_t size /* Size of data buffer */
27 );
28 
29 /*
30  * Unaligned PER decoder of any ASN.1 type. May be invoked by the application.
31  * WARNING: This call returns the number of BITS read from the stream. Beware.
32  */
34  const struct asn_codec_ctx_s *opt_codec_ctx,
35  const struct asn_TYPE_descriptor_s *type_descriptor, /* Type to decode */
36  void **struct_ptr, /* Pointer to a target structure's pointer */
37  const void *buffer, /* Data to be decoded */
38  size_t size, /* Size of the input data buffer, in bytes */
39  int skip_bits, /* Number of unused leading bits, 0..7 */
40  int unused_bits /* Number of unused tailing bits, 0..7 */
41 );
42 
43 #ifdef __cplusplus
44 }
45 #endif
46 
47 #endif /* _UPER_DECODER_H_ */
uper_decode_complete
asn_dec_rval_t uper_decode_complete(const struct asn_codec_ctx_s *opt_codec_ctx, const struct asn_TYPE_descriptor_s *type_descriptor, void **struct_ptr, const void *buffer, size_t size)
uper_decode
asn_dec_rval_t uper_decode(const struct asn_codec_ctx_s *opt_codec_ctx, const struct asn_TYPE_descriptor_s *type_descriptor, void **struct_ptr, const void *buffer, size_t size, int skip_bits, int unused_bits)
uper_support.h
asn_TYPE_descriptor_s
Definition: constr_TYPE.h:224
asn_codec_ctx_s
Definition: asn_codecs.h:23
asn_dec_rval_s
Definition: asn_codecs.h:86
asn_application.h


etsi_its_cpm_ts_coding
Author(s): Jean-Pierre Busch , Guido Küppers , Lennart Reiher
autogenerated on Sun May 18 2025 02:22:38