summaryrefslogtreecommitdiff
path: root/PLUGINS/src/dvbhddevice/bitbuffer.h
blob: e7b3650e4baac248cf96297ac29805601d3b7819 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
 * bitbuffer.h: TODO(short description)
 *
 * See the README file for copyright information and how to reach the author.
 *
 * $Id: bitbuffer.h 1.1 2009/12/29 14:27:03 kls Exp $
 */

#ifndef _HDFF_BITBUFFER_H_
#define _HDFF_BITBUFFER_H_

#include <stdint.h>

class cBitBuffer
{
private:
    uint8_t * mData;
    uint32_t mMaxLength;
    uint32_t mBitPos;
public:
    cBitBuffer(uint32_t MaxLength);
    ~cBitBuffer(void);
    uint8_t * GetData(void);
    uint32_t GetMaxLength(void);
    uint32_t GetBits(int NumBits);
    void SetBits(int NumBits, uint32_t Data);
    uint32_t GetByteLength(void);
    void SetDataByte(uint32_t Position, uint8_t Data);
};

#endif