Go to the documentation of this file.
84 unsigned int array_len,
bool dry_run,
85 unsigned int num_bits);
uint64_t bitvec_read_field(struct bitvec *bv, unsigned int *read_index, unsigned int len)
uint8_t * data
Definition: bitvec.h:49
int16_t bitvec_get_int16_msb(const struct bitvec *bv, unsigned int num_bits)
int bitvec_get_bytes(struct bitvec *bv, uint8_t *bytes, unsigned int count)
int bitvec_get_bit_high(struct bitvec *bv)
enum bit_value bitvec_get_bit_pos(const struct bitvec *bv, unsigned int bitnr)
unsigned int bitvec_pack(const struct bitvec *bv, uint8_t *buffer)
@ ZERO
Definition: bitvec.h:39
int bitvec_set_bit(struct bitvec *bv, enum bit_value bit)
int bitvec_find_bit_pos(const struct bitvec *bv, unsigned int n, enum bit_value val)
int bitvec_set_bits(struct bitvec *bv, const enum bit_value *bits, unsigned int count)
unsigned int data_len
Definition: bitvec.h:48
bit_value
Definition: bitvec.h:38
unsigned bitvec_rl_curbit(struct bitvec *bv, bool b, int max_bits)
unsigned int bitvec_add_array(struct bitvec *bv, const uint32_t *array, unsigned int array_len, bool dry_run, unsigned int num_bits)
int bitvec_set_u64(struct bitvec *bv, uint64_t v, uint8_t num_bits, bool use_lh)
int bitvec_write_field(struct bitvec *bv, unsigned int *write_index, uint64_t val, unsigned int len)
void bitvec_to_string_r(const struct bitvec *bv, char *str)
int bitvec_set_bit_pos(struct bitvec *bv, unsigned int bitnum, enum bit_value bit)
void bitvec_shiftl(struct bitvec *bv, unsigned int n)
@ ONE
Definition: bitvec.h:40
int bitvec_set_bytes(struct bitvec *bv, const uint8_t *bytes, unsigned int count)
void bitvec_zero(struct bitvec *bv)
@ H
Definition: bitvec.h:42
unsigned bitvec_rl(const struct bitvec *bv, bool b)
enum bit_value bitvec_get_bit_pos_high(const struct bitvec *bv, unsigned int bitnr)
int bitvec_spare_padding(struct bitvec *bv, unsigned int up_to_bit)
char bit_value_to_char(enum bit_value v)
unsigned int cur_bit
Definition: bitvec.h:47
int bitvec_set_uint(struct bitvec *bv, unsigned int in, unsigned int count)
int bitvec_get_uint(struct bitvec *bv, unsigned int num_bits)
int bitvec_fill(struct bitvec *bv, unsigned int num_bits, enum bit_value fill)
int bitvec_unhex(struct bitvec *bv, const char *src)
unsigned int bitvec_unpack(struct bitvec *bv, const uint8_t *buffer)
unsigned int bitvec_get_nth_set_bit(const struct bitvec *bv, unsigned int n)
@ L
Definition: bitvec.h:41