24#ifndef __M_BIT_PARSER_H__
25#define __M_BIT_PARSER_H__
29#include <mstdlib/base/m_defs.h>
30#include <mstdlib/base/m_types.h>
31#include <mstdlib/base/m_buf.h>
struct M_bit_buf M_bit_buf_t
Definition: m_bit_buf.h:72
void M_bit_parser_append(M_bit_parser_t *bparser, const void *bytes, size_t nbits)
void M_bit_parser_reset(M_bit_parser_t *bparser, const void *bytes, size_t nbits)
M_bool M_bit_parser_read_int(M_bit_parser_t *bparser, size_t nbits, M_bit_parser_int_format_t fmt, M_int64 *res)
void M_bit_parser_destroy(M_bit_parser_t *bparser) M_FREE(1)
size_t M_bit_parser_mark_len(const M_bit_parser_t *bparser)
size_t M_bit_parser_mark_rewind(M_bit_parser_t *bparser)
M_bool M_bit_parser_consume(M_bit_parser_t *bparser, size_t nbits)
M_bool M_bit_parser_read_bit_buf(M_bit_parser_t *bparser, M_bit_buf_t *bbuf, size_t nbits)
M_bit_parser_int_format_t
Definition: m_bit_parser.h:80
M_bit_parser_t * M_bit_parser_create_const(const void *bytes, size_t nbits) M_WARN_UNUSED_RESULT M_MALLOC
M_bool M_bit_parser_consume_range(M_bit_parser_t *bparser, size_t max_bits)
M_bool M_bit_parser_read_range(M_bit_parser_t *bparser, M_uint8 *bit, size_t *nbits_in_range, size_t max_bits)
M_bool M_bit_parser_append_bitstr(M_bit_parser_t *bparser, const char *bitstr)
M_bool M_bit_parser_read_bit(M_bit_parser_t *bparser, M_uint8 *bit)
M_bool M_bit_parser_read_bytes(M_bit_parser_t *bparser, M_uint8 *dest, size_t *destlen, size_t nbits)
void M_bit_parser_rewind_to_start(M_bit_parser_t *bparser)
M_bool M_bit_parser_consume_to_next(M_bit_parser_t *bparser, M_uint8 bit, size_t max_bits)
size_t M_bit_parser_current_offset(const M_bit_parser_t *bparser)
struct M_bit_parser M_bit_parser_t
Definition: m_bit_parser.h:71
char * M_bit_parser_read_strdup(M_bit_parser_t *bparser, size_t nbits)
M_bool M_bit_parser_peek_bit(const M_bit_parser_t *bparser, M_uint8 *bit)
size_t M_bit_parser_count(const M_bit_parser_t *bparser, M_uint8 bit)
M_bool M_bit_parser_read_buf(M_bit_parser_t *bparser, M_buf_t *buf, size_t nbits)
void M_bit_parser_mark(M_bit_parser_t *bparser)
void M_bit_parser_append_uint(M_bit_parser_t *bparser, M_uint64 bits, size_t nbits)
M_bool M_bit_parser_read_uint(M_bit_parser_t *bparser, size_t nbits, M_uint64 *res)
size_t M_bit_parser_len(const M_bit_parser_t *bparser)
M_bit_parser_t * M_bit_parser_create(const void *bytes, size_t nbits) M_WARN_UNUSED_RESULT M_MALLOC
@ M_BIT_PARSER_ONES_COMP
Definition: m_bit_parser.h:82
@ M_BIT_PARSER_TWOS_COMP
Definition: m_bit_parser.h:83
@ M_BIT_PARSER_SIGN_MAG
Definition: m_bit_parser.h:81
struct M_buf M_buf_t
Definition: m_buf.h:77