?? wm_bitio.h
字號:
// wm_bitio.h
#ifndef _WIX_WM_BITIO_H_01_
#define _WIX_WM_BITIO_H_01_
// 取log2(n)的upper_bound
int UpperLog2(int n);
// 取log2(n)的lower_bound
int LowerLog2(int n);
// 將位指針*piByte(字節偏移), *piBit(字節內位偏移)后移num位
void MovePos(int* piByte, int* piBit, int num);
// 得到字節byte第pos位的值
// pos順序為高位起從0記數(左起)
BYTE GetBit(BYTE byte, int pos);
// 設置byte的第iBit位為aBit
// iBit順序為高位起從0記數(左起)
void SetBit(BYTE* byte, int iBit, BYTE aBit);
// 將DWORD值從高位字節到低位字節排列
void InvertDWord(DWORD* pDW);
// CopyBits : 復制內存中的位流
// memDest - 目標數據區
// nDestPos - 目標數據區第一個字節中的起始位
// memSrc - 源數據區
// nSrcPos - 源數據區第一個字節的中起始位
// nBits - 要復制的位數
// 說明:
// 起始位的表示約定為從字節的高位至低位(由左至右)
// 依次為 0,1,... , 7
// 要復制的兩塊數據區不能有重合
void CopyBits(BYTE* memDest, int nDestPos,
BYTE* memSrc, int nSrcPos, int nBits);
// CopyBitsInAByte : 在一個字節范圍內復制位流
// 參數含義同 CopyBits 的參數
// 說明:
// 此函數由 CopyBits 調用,不做錯誤檢查,即
// 假定要復制的位都在一個字節范圍內
void CopyBitsInAByte(BYTE* memDest, int nDestPos,
BYTE* memSrc, int nSrcPos, int nBits);
#endif // _WIX_WM_BITIO_H_01_
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -