Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- typedef struct _asn1_obj_t {
- bool f_class:2;
- bool f_constr:1;
- uint8_t tag;
- size_t len;
- uint8_t *data;
- } asn1_obj_t;
- // some code
- node_o->tag = tag & 0b11111;
- node_o->f_constr = (tag>>5 & 1);
- node_o->f_class = (tag>>6 & 0b11);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement