aboutsummaryrefslogtreecommitdiffstats
path: root/skeletons/BIT_STRING.h
diff options
context:
space:
mode:
authorvlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2004-10-12 05:57:23 +0000
committervlm <vlm@59561ff5-6e30-0410-9f3c-9617f08c8826>2004-10-12 05:57:23 +0000
commit0f1ab76b7f3bd1c8ff4609d2dbb1b5d54891ea5d (patch)
tree3018cf701759a0635478e7152327b32c552b65bc /skeletons/BIT_STRING.h
parent267b7fdcf0650abac1f7e8f5a76399765956f920 (diff)
BIT STRING now stores the number of unused octets in a separate field.
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@498 59561ff5-6e30-0410-9f3c-9617f08c8826
Diffstat (limited to 'skeletons/BIT_STRING.h')
-rw-r--r--skeletons/BIT_STRING.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/skeletons/BIT_STRING.h b/skeletons/BIT_STRING.h
index 665d036d..1601231f 100644
--- a/skeletons/BIT_STRING.h
+++ b/skeletons/BIT_STRING.h
@@ -5,9 +5,16 @@
#ifndef _BIT_STRING_H_
#define _BIT_STRING_H_
-#include <OCTET_STRING.h>
+#include <OCTET_STRING.h> /* Some help from OCTET STRING */
-typedef OCTET_STRING_t BIT_STRING_t; /* Implemented via OCTET STRING */
+typedef struct BIT_STRING_s {
+ uint8_t *buf; /* BIT STRING body */
+ int size; /* Size of the above buffer */
+
+ int bits_unused;/* Unused trailing bits in the last octet (0..7) */
+
+ asn_struct_ctx_t _asn_ctx; /* Parsing across buffer boundaries */
+} BIT_STRING_t;
extern asn_TYPE_descriptor_t asn_DEF_BIT_STRING;