29.12.2011 - license GPLv3

This commit is contained in:
peri4
2011-12-29 12:25:17 +03:00
parent f141bab1c8
commit 92691981fb
56 changed files with 1830 additions and 59 deletions

View File

@@ -1,3 +1,22 @@
/*
PIP - Platform Independent Primitives
Byte array
Copyright (C) 2011 Ivan Pelipenko peri4@rambler.ru
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef PIBYTEARRAY_H
#define PIBYTEARRAY_H
@@ -75,8 +94,7 @@ class PIByteArray: public PIVector<uchar> {
public:
PIByteArray() {;}
PIByteArray(const uint size) {resize(size);}
PIByteArray(const char * data, const uint size) {for (uint i = 0; i < size; ++i) push_back(data[i]);}
PIByteArray(const uchar * data, const uint size) {for (uint i = 0; i < size; ++i) push_back(data[i]);}
PIByteArray(const void * data, const uint size) {for (uint i = 0; i < size; ++i) push_back(((uchar * )data)[i]);}
PIByteArray & convertToBase64();
PIByteArray & convertFromBase64();