blob: 732e878bcad1694e685153934afd8ce91f869e83 [file] [log] [blame]
vlmfa67ddc2004-06-03 03:38:44 +00001/*-
2 * Copyright (c) 2003 Lev Walkin <vlm@lionet.info>. All rights reserved.
3 * Redistribution and modifications are permitted subject to BSD license.
4 */
5#ifndef _BIT_STRING_H_
6#define _BIT_STRING_H_
7
vlm0f1ab762004-10-12 05:57:23 +00008#include <OCTET_STRING.h> /* Some help from OCTET STRING */
vlmfa67ddc2004-06-03 03:38:44 +00009
vlm3a417582005-07-24 09:03:44 +000010#ifdef __cplusplus
11extern "C" {
12#endif
13
vlm0f1ab762004-10-12 05:57:23 +000014typedef struct BIT_STRING_s {
15 uint8_t *buf; /* BIT STRING body */
16 int size; /* Size of the above buffer */
17
18 int bits_unused;/* Unused trailing bits in the last octet (0..7) */
19
20 asn_struct_ctx_t _asn_ctx; /* Parsing across buffer boundaries */
21} BIT_STRING_t;
vlmfa67ddc2004-06-03 03:38:44 +000022
vlmef6355b2004-09-29 13:26:15 +000023extern asn_TYPE_descriptor_t asn_DEF_BIT_STRING;
vlmfa67ddc2004-06-03 03:38:44 +000024
25asn_struct_print_f BIT_STRING_print; /* Human-readable output */
26asn_constr_check_f BIT_STRING_constraint;
vlm39ba4c42004-09-22 16:06:28 +000027xer_type_encoder_f BIT_STRING_encode_xer;
vlmfa67ddc2004-06-03 03:38:44 +000028
vlm3a417582005-07-24 09:03:44 +000029#ifdef __cplusplus
30}
31#endif
32
vlmfa67ddc2004-06-03 03:38:44 +000033#endif /* _BIT_STRING_H_ */