diff options
author | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2008-07-11 16:51:25 +0000 |
---|---|---|
committer | Nicolas Pennequin <nicolas.pennequin@free.fr> | 2008-07-11 16:51:25 +0000 |
commit | ca5bb76d2b8f65aa97e50b633f828c1deb241526 (patch) | |
tree | 453a1b2de3a0dc0d0b2f7080d10d033bf8fbcdf1 /utils/zenutils/libraries/pelib-0.9/pelib/buffer/OutputBuffer.cpp | |
parent | 141774be48940d56e3ad4dbf451d245b61d4f8b2 (diff) | |
download | rockbox-ca5bb76d2b8f65aa97e50b633f828c1deb241526.tar.gz rockbox-ca5bb76d2b8f65aa97e50b633f828c1deb241526.zip |
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
Diffstat (limited to 'utils/zenutils/libraries/pelib-0.9/pelib/buffer/OutputBuffer.cpp')
-rw-r--r--[-rwxr-xr-x] | utils/zenutils/libraries/pelib-0.9/pelib/buffer/OutputBuffer.cpp | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/utils/zenutils/libraries/pelib-0.9/pelib/buffer/OutputBuffer.cpp b/utils/zenutils/libraries/pelib-0.9/pelib/buffer/OutputBuffer.cpp index b47fbb6ff8..4ad8471d83 100755..100644 --- 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 @@ | |||
1 | /* | 1 | /* |
2 | * OutputBuffer.cpp - Part of the PeLib library. | 2 | * OutputBuffer.cpp - Part of the PeLib library. |
3 | * | 3 | * |
4 | * Copyright (c) 2004 - 2005 Sebastian Porst (webmaster@the-interweb.com) | 4 | * Copyright (c) 2004 - 2005 Sebastian Porst (webmaster@the-interweb.com) |
5 | * All rights reserved. | 5 | * All rights reserved. |
6 | * | 6 | * |
7 | * This software is licensed under the zlib/libpng License. | 7 | * This software is licensed under the zlib/libpng License. |
8 | * For more details see http://www.opensource.org/licenses/zlib-license.php | 8 | * For more details see http://www.opensource.org/licenses/zlib-license.php |
9 | * or the license information file (license.htm) in the root directory | 9 | * or the license information file (license.htm) in the root directory |
10 | * of PeLib. | 10 | * of PeLib. |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include "OutputBuffer.h" | 13 | #include "OutputBuffer.h" |
14 | 14 | ||
15 | namespace PeLib | 15 | namespace PeLib |
16 | { | 16 | { |
17 | OutputBuffer::OutputBuffer(std::vector<unsigned char>& vBuffer) : m_vBuffer(vBuffer) | 17 | OutputBuffer::OutputBuffer(std::vector<unsigned char>& vBuffer) : m_vBuffer(vBuffer) |
18 | { | 18 | { |
19 | m_vBuffer.clear(); | 19 | m_vBuffer.clear(); |
20 | } | 20 | } |
21 | 21 | ||
22 | const unsigned char* OutputBuffer::data() const | 22 | const unsigned char* OutputBuffer::data() const |
23 | { | 23 | { |
24 | return &m_vBuffer[0]; | 24 | return &m_vBuffer[0]; |
25 | } | 25 | } |
26 | 26 | ||
27 | unsigned long OutputBuffer::size() | 27 | unsigned long OutputBuffer::size() |
28 | { | 28 | { |
29 | return static_cast<unsigned long>(m_vBuffer.size()); | 29 | return static_cast<unsigned long>(m_vBuffer.size()); |
30 | } | 30 | } |
31 | 31 | ||
32 | void OutputBuffer::add(const char* lpBuffer, unsigned long ulSize) | 32 | void OutputBuffer::add(const char* lpBuffer, unsigned long ulSize) |
33 | { | 33 | { |
34 | std::copy(lpBuffer, lpBuffer + ulSize, std::back_inserter(m_vBuffer)); | 34 | std::copy(lpBuffer, lpBuffer + ulSize, std::back_inserter(m_vBuffer)); |
35 | } | 35 | } |
36 | 36 | ||
37 | void OutputBuffer::reset() | 37 | void OutputBuffer::reset() |
38 | { | 38 | { |
39 | m_vBuffer.clear(); | 39 | m_vBuffer.clear(); |
40 | } | 40 | } |
41 | } | 41 | } |