diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-06-13 13:05:30 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2012-06-13 13:05:30 +0400 |
commit | 0b9ec9a361f62ce15fc58763ca8b533afe405973 (patch) | |
tree | 02fb318875748db7e28f0b303d9907e58d69ca8c /src/DSUtil/GolombBuffer.h | |
parent | d3b052fb035d8b242e4b328722f4ed7ac84ee20c (diff) |
apply the new astyle command; use 4 spaces for indentation and k&r style
Note: if you have any local patches just run astyle.bat
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@5110 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/DSUtil/GolombBuffer.h')
-rw-r--r-- | src/DSUtil/GolombBuffer.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/DSUtil/GolombBuffer.h b/src/DSUtil/GolombBuffer.h index c151fb1d2..655afb856 100644 --- a/src/DSUtil/GolombBuffer.h +++ b/src/DSUtil/GolombBuffer.h @@ -25,34 +25,34 @@ class CGolombBuffer
{
public:
- CGolombBuffer(BYTE* pBuffer, int nSize);
+ CGolombBuffer(BYTE* pBuffer, int nSize);
- UINT64 BitRead(int nBits, bool fPeek = false);
- UINT64 UExpGolombRead();
- INT64 SExpGolombRead();
- void BitByteAlign();
+ UINT64 BitRead(int nBits, bool fPeek = false);
+ UINT64 UExpGolombRead();
+ INT64 SExpGolombRead();
+ void BitByteAlign();
- inline BYTE ReadByte() { return (BYTE)BitRead (8); };
- inline SHORT ReadShort() { return (SHORT)BitRead (16); };
- inline DWORD ReadDword() { return (DWORD)BitRead (32); };
- void ReadBuffer(BYTE* pDest, int nSize);
+ inline BYTE ReadByte() { return (BYTE)BitRead(8); };
+ inline SHORT ReadShort() { return (SHORT)BitRead(16); };
+ inline DWORD ReadDword() { return (DWORD)BitRead(32); };
+ void ReadBuffer(BYTE* pDest, int nSize);
- void Reset();
- void Reset(BYTE* pNewBuffer, int nNewSize);
+ void Reset();
+ void Reset(BYTE* pNewBuffer, int nNewSize);
- void SetSize(int nValue) { m_nSize = nValue; };
- int GetSize() const { return m_nSize; };
- int RemainingSize() const { return m_nSize - m_nBitPos; };
- bool IsEOF() const { return m_nBitPos >= m_nSize; };
- int GetPos();
- BYTE* GetBufferPos() { return m_pBuffer + m_nBitPos; };
+ void SetSize(int nValue) { m_nSize = nValue; };
+ int GetSize() const { return m_nSize; };
+ int RemainingSize() const { return m_nSize - m_nBitPos; };
+ bool IsEOF() const { return m_nBitPos >= m_nSize; };
+ int GetPos();
+ BYTE* GetBufferPos() { return m_pBuffer + m_nBitPos; };
- void SkipBytes(int nCount);
+ void SkipBytes(int nCount);
private :
- BYTE* m_pBuffer;
- int m_nSize;
- int m_nBitPos;
- int m_bitlen;
- INT64 m_bitbuff;
+ BYTE* m_pBuffer;
+ int m_nSize;
+ int m_nBitPos;
+ int m_bitlen;
+ INT64 m_bitbuff;
};
|