⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 asn1p_value.h

📁 RSA加密/解密算法源码 asn1c-0.9.12
💻 H
字号:
/* * A generic value of different syntaxes. */#ifndef	ASN1_PARSER_VALUE_H#define	ASN1_PARSER_VALUE_H/* * A wrapper around various kinds of values. */typedef struct asn1p_value_s {	/*	 * The value of the element.	 */	enum {		ATV_NOVALUE,		ATV_NULL,	/* A "NULL" value of type NULL. */		ATV_REAL,	/* A constant floating-point value */		ATV_INTEGER,	/* An integer constant */		ATV_MAX,		ATV_MIN,		ATV_TRUE,		ATV_FALSE,		ATV_STRING,		ATV_UNPARSED,		ATV_BITVECTOR,		ATV_REFERENCED,	/* Reference to a value defined elsewhere */		ATV_CHOICE_IDENTIFIER,	/* ChoiceIdentifier value */	} type;	/* Value type and location */	union {		asn1p_ref_t	*reference;		asn1c_integer_t	 v_integer;		double		 v_double;		/*		 * Binary bits vector.		 */		struct {			uint8_t *buf;			int size;		} string;		struct {			uint8_t *bits;			int size_in_bits;		} binary_vector;		struct {			char *identifier;			struct asn1p_value_s *value;		} choice_identifier;	} value;} asn1p_value_t;/* * Constructors and destructor for value. * If ref, bits or buffer are omitted, the corresponding function returns * (asn1p_value_t *)0 with errno = EINVAL. * Allocated value (where applicable) is guaranteed to be NUL-terminated. */asn1p_value_t *asn1p_value_fromref(asn1p_ref_t *ref, int do_copy);asn1p_value_t *asn1p_value_frombits(uint8_t *bits, int size_in_bits, int dc);asn1p_value_t *asn1p_value_frombuf(char *buffer, int size, int do_copy);asn1p_value_t *asn1p_value_fromdouble(double);asn1p_value_t *asn1p_value_fromint(asn1c_integer_t);asn1p_value_t *asn1p_value_clone(asn1p_value_t *);void asn1p_value_free(asn1p_value_t *);#endif	/* ASN1_PARSER_VALUE_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -