Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 1 | /*- |
| 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 Walkin | bbd9325 | 2004-10-12 05:57:23 +0000 | [diff] [blame] | 8 | #include <OCTET_STRING.h> /* Some help from OCTET STRING */ |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 9 | |
Lev Walkin | bbd9325 | 2004-10-12 05:57:23 +0000 | [diff] [blame] | 10 | typedef 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 Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 18 | |
Lev Walkin | 5e03376 | 2004-09-29 13:26:15 +0000 | [diff] [blame] | 19 | extern asn_TYPE_descriptor_t asn_DEF_BIT_STRING; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 20 | |
| 21 | asn_struct_print_f BIT_STRING_print; /* Human-readable output */ |
| 22 | asn_constr_check_f BIT_STRING_constraint; |
Lev Walkin | a9cc46e | 2004-09-22 16:06:28 +0000 | [diff] [blame] | 23 | xer_type_encoder_f BIT_STRING_encode_xer; |
Lev Walkin | f15320b | 2004-06-03 03:38:44 +0000 | [diff] [blame] | 24 | |
| 25 | #endif /* _BIT_STRING_H_ */ |