2#ifndef LOGICALACCESS_BITSETSTREAM_HPP
3#define LOGICALACCESS_BITSETSTREAM_HPP
9#include <logicalaccess/lla_core_api.hpp>
25 void append(
unsigned char data);
27 void append(
unsigned char data,
unsigned int readPosStart);
35 void append(
unsigned char data,
unsigned int readPosStart,
unsigned int readLength);
41 void concat(
const ByteVector &data,
unsigned int readPosStart);
43 void concat(
const ByteVector &data,
unsigned int readPosStart,
44 unsigned int readLength);
46 void writeAt(
unsigned int pos,
unsigned char data,
unsigned int readPosStart = 0,
47 unsigned int readLength = 8);
49 void writeAt(
unsigned int pos,
ByteVector const &data,
unsigned int readPosStart,
50 unsigned int readLength);
52 void insert(
unsigned int pos,
unsigned char data,
unsigned int readPosStart = 0,
53 unsigned int readLength = 8);
55 void insert(
unsigned int pos,
ByteVector const &data,
unsigned int readPosStart,
56 unsigned int readLength);
60 unsigned int getByteSize()
const;
62 unsigned int getBitSize()
const;
64 std::string toString(
size_t begin,
size_t end)
const;
66 std::string toString()
const;
68 unsigned long toULong()
const;
70 unsigned long long toULLong()
const;
72 bool test(
size_t index)
const;
Definition: BitsetStream.hpp:15
ByteVector stream
Definition: BitsetStream.hpp:83
unsigned int _pos
Definition: BitsetStream.hpp:85
std::vector< uint8_t > ByteVector
Definition: lla_fwd.hpp:80