diff options
| author | dreijer <dreijer@echobit.net> | 2010-11-12 18:33:40 (GMT) |
|---|---|---|
| committer | Kevin Smith <git@kismith.co.uk> | 2011-11-03 18:49:22 (GMT) |
| commit | 7b0795215f601a9561dbedbed3af32dbe9aba032 (patch) | |
| tree | 554a6693de362fb3403a44a586f48865c4d949bf /Swiften/Base/ByteArray.h | |
| parent | 16d50c0df983e96a28a6572da27b3633b40a41d7 (diff) | |
| download | swift-contrib-7b0795215f601a9561dbedbed3af32dbe9aba032.zip swift-contrib-7b0795215f601a9561dbedbed3af32dbe9aba032.tar.bz2 | |
* Added Schannel support.
License: This patch is BSD-licensed, see http://www.opensource.org/licenses/bsd-license.php
Diffstat (limited to 'Swiften/Base/ByteArray.h')
| -rw-r--r-- | Swiften/Base/ByteArray.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Base/ByteArray.h b/Swiften/Base/ByteArray.h index b368ef8..01cd5d0 100644 --- a/Swiften/Base/ByteArray.h +++ b/Swiften/Base/ByteArray.h @@ -4,41 +4,41 @@ * See Documentation/Licenses/GPLv3.txt for more information. */ #pragma once #include <vector> #include <string> namespace Swift { typedef std::vector<unsigned char> ByteArray; ByteArray createByteArray(const std::string& s); ByteArray createByteArray(const char* c); inline ByteArray createByteArray(const unsigned char* c, size_t n) { return ByteArray(c, c + n); } inline ByteArray createByteArray(const char* c, size_t n) { return ByteArray(c, c + n); } inline ByteArray createByteArray(char c) { return std::vector<unsigned char>(1, c); } template<typename T, typename A> static const T* vecptr(const std::vector<T, A>& v) { return v.empty() ? NULL : &v[0]; } template<typename T, typename A> static T* vecptr(std::vector<T, A>& v) { return v.empty() ? NULL : &v[0]; } - + std::string byteArrayToString(const ByteArray& b); void readByteArrayFromFile(ByteArray&, const std::string& file); } |
Swift