From ca5bb76d2b8f65aa97e50b633f828c1deb241526 Mon Sep 17 00:00:00 2001 From: Nicolas Pennequin Date: Fri, 11 Jul 2008 16:51:25 +0000 Subject: Delete the svn:executable property and set svn:eol-style to native for all those text files. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18012 a1c6a512-1295-4272-9138-f99709370657 --- .../pelib-0.9/pelib/buffer/InputBuffer.cpp | 116 ++++++++++----------- .../libraries/pelib-0.9/pelib/buffer/InputBuffer.h | 104 +++++++++--------- .../pelib-0.9/pelib/buffer/OutputBuffer.cpp | 82 +++++++-------- .../pelib-0.9/pelib/buffer/OutputBuffer.h | 102 +++++++++--------- 4 files changed, 202 insertions(+), 202 deletions(-) mode change 100755 => 100644 utils/zenutils/libraries/pelib-0.9/pelib/buffer/InputBuffer.cpp mode change 100755 => 100644 utils/zenutils/libraries/pelib-0.9/pelib/buffer/InputBuffer.h mode change 100755 => 100644 utils/zenutils/libraries/pelib-0.9/pelib/buffer/OutputBuffer.cpp mode change 100755 => 100644 utils/zenutils/libraries/pelib-0.9/pelib/buffer/OutputBuffer.h (limited to 'utils/zenutils/libraries/pelib-0.9/pelib/buffer') diff --git a/utils/zenutils/libraries/pelib-0.9/pelib/buffer/InputBuffer.cpp b/utils/zenutils/libraries/pelib-0.9/pelib/buffer/InputBuffer.cpp old mode 100755 new mode 100644 index ae2584edb1..579b152659 --- a/utils/zenutils/libraries/pelib-0.9/pelib/buffer/InputBuffer.cpp +++ b/utils/zenutils/libraries/pelib-0.9/pelib/buffer/InputBuffer.cpp @@ -1,58 +1,58 @@ -/* -* InputBuffer.cpp - Part of the PeLib library. -* -* Copyright (c) 2004 - 2005 Sebastian Porst (webmaster@the-interweb.com) -* All rights reserved. -* -* This software is licensed under the zlib/libpng License. -* For more details see http://www.opensource.org/licenses/zlib-license.php -* or the license information file (license.htm) in the root directory -* of PeLib. -*/ - -#include "InputBuffer.h" - -namespace PeLib -{ - unsigned long InputBuffer::get() - { - return ulIndex; - } - - InputBuffer::InputBuffer(std::vector& vBuffer) : m_vBuffer(vBuffer), ulIndex(0) - { - } - - const unsigned char* InputBuffer::data() const - { - return &m_vBuffer[0]; - } - - unsigned long InputBuffer::size() - { - return static_cast(m_vBuffer.size()); - } - - void InputBuffer::read(char* lpBuffer, unsigned long ulSize) - { - std::copy(&m_vBuffer[ulIndex], &m_vBuffer[ulIndex + ulSize], lpBuffer); - ulIndex += ulSize; - } - - void InputBuffer::reset() - { - m_vBuffer.clear(); - } - - void InputBuffer::set(unsigned long ulIndex) - { - this->ulIndex = ulIndex; - } - - void InputBuffer::setBuffer(std::vector& vBuffer) - { - m_vBuffer = vBuffer; - ulIndex = 0; - } -} - +/* +* InputBuffer.cpp - Part of the PeLib library. +* +* Copyright (c) 2004 - 2005 Sebastian Porst (webmaster@the-interweb.com) +* All rights reserved. +* +* This software is licensed under the zlib/libpng License. +* For more details see http://www.opensource.org/licenses/zlib-license.php +* or the license information file (license.htm) in the root directory +* of PeLib. +*/ + +#include "InputBuffer.h" + +namespace PeLib +{ + unsigned long InputBuffer::get() + { + return ulIndex; + } + + InputBuffer::InputBuffer(std::vector& vBuffer) : m_vBuffer(vBuffer), ulIndex(0) + { + } + + const unsigned char* InputBuffer::data() const + { + return &m_vBuffer[0]; + } + + unsigned long InputBuffer::size() + { + return static_cast(m_vBuffer.size()); + } + + void InputBuffer::read(char* lpBuffer, unsigned long ulSize) + { + std::copy(&m_vBuffer[ulIndex], &m_vBuffer[ulIndex + ulSize], lpBuffer); + ulIndex += ulSize; + } + + void InputBuffer::reset() + { + m_vBuffer.clear(); + } + + void InputBuffer::set(unsigned long ulIndex) + { + this->ulIndex = ulIndex; + } + + void InputBuffer::setBuffer(std::vector& vBuffer) + { + m_vBuffer = vBuffer; + ulIndex = 0; + } +} + diff --git a/utils/zenutils/libraries/pelib-0.9/pelib/buffer/InputBuffer.h b/utils/zenutils/libraries/pelib-0.9/pelib/buffer/InputBuffer.h old mode 100755 new mode 100644 index fc5a14e357..18a7b1b7bc --- a/utils/zenutils/libraries/pelib-0.9/pelib/buffer/InputBuffer.h +++ b/utils/zenutils/libraries/pelib-0.9/pelib/buffer/InputBuffer.h @@ -1,52 +1,52 @@ -/* -* InputBuffer.h - Part of the PeLib library. -* -* Copyright (c) 2004 - 2005 Sebastian Porst (webmaster@the-interweb.com) -* All rights reserved. -* -* This software is licensed under the zlib/libpng License. -* For more details see http://www.opensource.org/licenses/zlib-license.php -* or the license information file (license.htm) in the root directory -* of PeLib. -*/ - -#ifndef INPUTBUFFER_H -#define INPUTBUFFER_H - -#include -#include -#include - -namespace PeLib -{ - class InputBuffer - { - private: - std::vector& m_vBuffer; - unsigned long ulIndex; - - public: - InputBuffer(std::vector& vBuffer); - - const unsigned char* data() const; - unsigned long size(); - - template - InputBuffer& operator>>(T& value) - { - assert(ulIndex + sizeof(value) <= m_vBuffer.size()); - value = *(T*)(&m_vBuffer[ulIndex]);//reinterpret_cast(&m_vBuffer[ulIndex]); - ulIndex += sizeof(T); - return *this; - } - - void read(char* lpBuffer, unsigned long ulSize); - void reset(); - void set(unsigned long ulIndex); - unsigned long get(); - void setBuffer(std::vector& vBuffer); -// void updateData(unsigned long ulIndex, - }; -} - -#endif +/* +* InputBuffer.h - Part of the PeLib library. +* +* Copyright (c) 2004 - 2005 Sebastian Porst (webmaster@the-interweb.com) +* All rights reserved. +* +* This software is licensed under the zlib/libpng License. +* For more details see http://www.opensource.org/licenses/zlib-license.php +* or the license information file (license.htm) in the root directory +* of PeLib. +*/ + +#ifndef INPUTBUFFER_H +#define INPUTBUFFER_H + +#include +#include +#include + +namespace PeLib +{ + class InputBuffer + { + private: + std::vector& m_vBuffer; + unsigned long ulIndex; + + public: + InputBuffer(std::vector& vBuffer); + + const unsigned char* data() const; + unsigned long size(); + + template + InputBuffer& operator>>(T& value) + { + assert(ulIndex + sizeof(value) <= m_vBuffer.size()); + value = *(T*)(&m_vBuffer[ulIndex]);//reinterpret_cast(&m_vBuffer[ulIndex]); + ulIndex += sizeof(T); + return *this; + } + + void read(char* lpBuffer, unsigned long ulSize); + void reset(); + void set(unsigned long ulIndex); + unsigned long get(); + void setBuffer(std::vector& vBuffer); +// void updateData(unsigned long ulIndex, + }; +} + +#endif diff --git a/utils/zenutils/libraries/pelib-0.9/pelib/buffer/OutputBuffer.cpp b/utils/zenutils/libraries/pelib-0.9/pelib/buffer/OutputBuffer.cpp old mode 100755 new mode 100644 index b47fbb6ff8..4ad8471d83 --- a/utils/zenutils/libraries/pelib-0.9/pelib/buffer/OutputBuffer.cpp +++ b/utils/zenutils/libraries/pelib-0.9/pelib/buffer/OutputBuffer.cpp @@ -1,41 +1,41 @@ -/* -* OutputBuffer.cpp - Part of the PeLib library. -* -* Copyright (c) 2004 - 2005 Sebastian Porst (webmaster@the-interweb.com) -* All rights reserved. -* -* This software is licensed under the zlib/libpng License. -* For more details see http://www.opensource.org/licenses/zlib-license.php -* or the license information file (license.htm) in the root directory -* of PeLib. -*/ - -#include "OutputBuffer.h" - -namespace PeLib -{ - OutputBuffer::OutputBuffer(std::vector& vBuffer) : m_vBuffer(vBuffer) - { - m_vBuffer.clear(); - } - - const unsigned char* OutputBuffer::data() const - { - return &m_vBuffer[0]; - } - - unsigned long OutputBuffer::size() - { - return static_cast(m_vBuffer.size()); - } - - void OutputBuffer::add(const char* lpBuffer, unsigned long ulSize) - { - std::copy(lpBuffer, lpBuffer + ulSize, std::back_inserter(m_vBuffer)); - } - - void OutputBuffer::reset() - { - m_vBuffer.clear(); - } -} +/* +* OutputBuffer.cpp - Part of the PeLib library. +* +* Copyright (c) 2004 - 2005 Sebastian Porst (webmaster@the-interweb.com) +* All rights reserved. +* +* This software is licensed under the zlib/libpng License. +* For more details see http://www.opensource.org/licenses/zlib-license.php +* or the license information file (license.htm) in the root directory +* of PeLib. +*/ + +#include "OutputBuffer.h" + +namespace PeLib +{ + OutputBuffer::OutputBuffer(std::vector& vBuffer) : m_vBuffer(vBuffer) + { + m_vBuffer.clear(); + } + + const unsigned char* OutputBuffer::data() const + { + return &m_vBuffer[0]; + } + + unsigned long OutputBuffer::size() + { + return static_cast(m_vBuffer.size()); + } + + void OutputBuffer::add(const char* lpBuffer, unsigned long ulSize) + { + std::copy(lpBuffer, lpBuffer + ulSize, std::back_inserter(m_vBuffer)); + } + + void OutputBuffer::reset() + { + m_vBuffer.clear(); + } +} diff --git a/utils/zenutils/libraries/pelib-0.9/pelib/buffer/OutputBuffer.h b/utils/zenutils/libraries/pelib-0.9/pelib/buffer/OutputBuffer.h old mode 100755 new mode 100644 index f1ab99039b..06049ddd9d --- a/utils/zenutils/libraries/pelib-0.9/pelib/buffer/OutputBuffer.h +++ b/utils/zenutils/libraries/pelib-0.9/pelib/buffer/OutputBuffer.h @@ -1,51 +1,51 @@ -/* -* OutputBuffer.h - Part of the PeLib library. -* -* Copyright (c) 2004 - 2005 Sebastian Porst (webmaster@the-interweb.com) -* All rights reserved. -* -* This software is licensed under the zlib/libpng License. -* For more details see http://www.opensource.org/licenses/zlib-license.php -* or the license information file (license.htm) in the root directory -* of PeLib. -*/ - -#ifndef OUTPUTBUFFER_H -#define OUTPUTBUFFER_H - -#include -#include - -namespace PeLib -{ - class OutputBuffer - { - private: - std::vector& m_vBuffer; - - public: - OutputBuffer(std::vector& vBuffer); - const unsigned char* data() const; - unsigned long size(); - - template - OutputBuffer& operator<<(const T& value) - { - const unsigned char* p = reinterpret_cast(&value); - std::copy(p, p + sizeof(value), std::back_inserter(m_vBuffer)); - return *this; - } - void add(const char* lpBuffer, unsigned long ulSize); - void reset(); - void resize(unsigned int uiSize); - void set(unsigned int uiPosition); - - template - void update(unsigned long ulIndex, const T& value) - { - *(T*)(&m_vBuffer[ulIndex]) = value; - } - }; -} - -#endif +/* +* OutputBuffer.h - Part of the PeLib library. +* +* Copyright (c) 2004 - 2005 Sebastian Porst (webmaster@the-interweb.com) +* All rights reserved. +* +* This software is licensed under the zlib/libpng License. +* For more details see http://www.opensource.org/licenses/zlib-license.php +* or the license information file (license.htm) in the root directory +* of PeLib. +*/ + +#ifndef OUTPUTBUFFER_H +#define OUTPUTBUFFER_H + +#include +#include + +namespace PeLib +{ + class OutputBuffer + { + private: + std::vector& m_vBuffer; + + public: + OutputBuffer(std::vector& vBuffer); + const unsigned char* data() const; + unsigned long size(); + + template + OutputBuffer& operator<<(const T& value) + { + const unsigned char* p = reinterpret_cast(&value); + std::copy(p, p + sizeof(value), std::back_inserter(m_vBuffer)); + return *this; + } + void add(const char* lpBuffer, unsigned long ulSize); + void reset(); + void resize(unsigned int uiSize); + void set(unsigned int uiPosition); + + template + void update(unsigned long ulIndex, const T& value) + { + *(T*)(&m_vBuffer[ulIndex]) = value; + } + }; +} + +#endif -- cgit v1.2.3