stream.h
来自「In term project, we will take the baseli」· C头文件 代码 · 共 40 行
H
40 行
#ifndef __stream__
#define __stream__
#include "type.h"
class BitStream
{ public:
char Name[32];
BitStream();
~BitStream();
bool Open (const char* name, const char* attr="");
bool Close();
bool IsEndOfStream();
bool PutStream(DWord code, Byte length);
bool GetStream(DWord* code, Byte length=1);
DWord StreamIn(Byte length);
void Align(bool flag);
BitStream& operator<<( const char* str );
BitStream& operator<<( const DWord& dword );
protected:
bool ByteStuffing;
private:
Byte Buffer, BufferLength;
bool Put(Byte val);
bool Get(Byte* val);
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?