Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@users.sourceforge.net>2012-05-10 15:04:10 +0400
committerXhmikosR <xhmikosr@users.sourceforge.net>2012-05-10 15:04:10 +0400
commitb265baa135cf669effce82f656a4475aefebf837 (patch)
tree7fed863e701378af58bea2f2e77cce38c8ed2850 /src/DSUtil/GolombBuffer.h
parenta00f860d83f1c3c19692ffd37e202fde7b508532 (diff)
DSUtil: keep one line statements
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@4671 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/DSUtil/GolombBuffer.h')
-rw-r--r--src/DSUtil/GolombBuffer.h32
1 files changed, 8 insertions, 24 deletions
diff --git a/src/DSUtil/GolombBuffer.h b/src/DSUtil/GolombBuffer.h
index a91286932..83573d009 100644
--- a/src/DSUtil/GolombBuffer.h
+++ b/src/DSUtil/GolombBuffer.h
@@ -32,36 +32,20 @@ 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);