bitio.cpp

来自「wavelet codec there are 34 files with co」· C++ 代码 · 共 27 行

CPP
27
字号
#include <stdlib.h>
#include <iostream.h>
#include <assert.h>
#include <math.h>
#include "global.h"
#include "BitIO.h"


BitIn::BitIn(istream &is, ostream &log) : input(is), bitLog(log)
{
    bitsInBuf = 0;
    bitCount = 0;
}

BitOut::BitOut(ostream &out, ostream &log) : output(out), bitLog(log)
{
    bitsInBuf = 0;
    nBytes = 0;
}

void BitOut::flush(void)
{
    while (bitsInBuf) { output_bit(0); }
}


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?