blob: 1601231f9497fa869a0a16a0da013f9e0b5d4464 [file] [log] [blame]
Lev Walkinf15320b2004-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
Lev Walkinbbd93252004-10-12 05:57:23 +00008#include <OCTET_STRING.h> /* Some help from OCTET STRING */
Lev Walkinf15320b2004-06-03 03:38:44 +00009
Lev Walkinbbd93252004-10-12 05:57:23 +000010typedef struct BIT_STRING_s {
11 uint8_t *buf; /* BIT STRING body */
12 int size; /* Size of the above buffer */
13
14 int bits_unused;/* Unused trailing bits in the last octet (0..7) */
15
16 asn_struct_ctx_t _asn_ctx; /* Parsing across buffer boundaries */
17} BIT_STRING_t;
Lev Walkinf15320b2004-06-03 03:38:44 +000018
Lev Walkin5e033762004-09-29 13:26:15 +000019extern asn_TYPE_descriptor_t asn_DEF_BIT_STRING;
Lev Walkinf15320b2004-06-03 03:38:44 +000020
21asn_struct_print_f BIT_STRING_print; /* Human-readable output */
22asn_constr_check_f BIT_STRING_constraint;
Lev Walkina9cc46e2004-09-22 16:06:28 +000023xer_type_encoder_f BIT_STRING_encode_xer;
Lev Walkinf15320b2004-06-03 03:38:44 +000024
25#endif /* _BIT_STRING_H_ */