diff options
author | XhmikosR <xhmikosr@users.sourceforge.net> | 2010-09-12 16:45:26 +0400 |
---|---|---|
committer | XhmikosR <xhmikosr@users.sourceforge.net> | 2010-09-12 16:45:26 +0400 |
commit | b37ef08a64b3f12bedd9d45ff910be641945f390 (patch) | |
tree | 2037c5a39b39f9ed1e0c79aef7767f519a5e507f /src/DSUtil/GolombBuffer.h | |
parent | d8307f02fd6d0faad2cd963aee672ebcd5de93bc (diff) |
DSUtil: applied astyle formatting
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@2533 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/DSUtil/GolombBuffer.h')
-rw-r--r-- | src/DSUtil/GolombBuffer.h | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/src/DSUtil/GolombBuffer.h b/src/DSUtil/GolombBuffer.h index ffb596e02..d9e6df1e9 100644 --- a/src/DSUtil/GolombBuffer.h +++ b/src/DSUtil/GolombBuffer.h @@ -1,4 +1,4 @@ -/*
+/*
* $Id$
*
* (C) 2006-2010 see AUTHORS
@@ -32,20 +32,36 @@ public: 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); };
+ 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 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; };
+ 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;
+ };
INT64 GetPos();
- BYTE* GetBufferPos() { return m_pBuffer + m_nBitPos; };
+ BYTE* GetBufferPos() {
+ return m_pBuffer + m_nBitPos;
+ };
void SkipBytes(int nCount);
|