PIByteArray rvalue, some fixes
This commit is contained in:
@@ -658,12 +658,14 @@ message(" Modules:")
|
|||||||
foreach(_m ${PIP_SRC_MODULES})
|
foreach(_m ${PIP_SRC_MODULES})
|
||||||
message(" ${_m}: ${PIP_MSG_${_m}}")
|
message(" ${_m}: ${PIP_MSG_${_m}}")
|
||||||
endforeach()
|
endforeach()
|
||||||
if (PIP_TESTS_LIST)
|
|
||||||
message("")
|
message("")
|
||||||
|
if (PIP_TESTS_LIST)
|
||||||
message(" Tests:")
|
message(" Tests:")
|
||||||
foreach(_test ${PIP_TESTS_LIST})
|
foreach(_test ${PIP_TESTS_LIST})
|
||||||
message(" * ${_test}")
|
message(" * ${_test}")
|
||||||
endforeach()
|
endforeach()
|
||||||
|
else()
|
||||||
|
message(" Tests: skip (tests off)")
|
||||||
endif()
|
endif()
|
||||||
message("")
|
message("")
|
||||||
message(" Utilites:")
|
message(" Utilites:")
|
||||||
|
|||||||
@@ -56,6 +56,10 @@ public:
|
|||||||
//! Constructs an empty byte array
|
//! Constructs an empty byte array
|
||||||
PIByteArray() {;}
|
PIByteArray() {;}
|
||||||
|
|
||||||
|
PIByteArray(const PIByteArray & o): PIDeque<uchar>(o) {}
|
||||||
|
|
||||||
|
PIByteArray(PIByteArray && o): PIDeque<uchar>(std::move(o)) {}
|
||||||
|
|
||||||
//! Constructs 0-filled byte array with size "size"
|
//! Constructs 0-filled byte array with size "size"
|
||||||
PIByteArray(const uint size) {resize(size);}
|
PIByteArray(const uint size) {resize(size);}
|
||||||
|
|
||||||
@@ -124,6 +128,10 @@ public:
|
|||||||
|
|
||||||
void operator =(const PIDeque<uchar> & d) {resize(d.size()); memcpy(data(), d.data(), d.size());}
|
void operator =(const PIDeque<uchar> & d) {resize(d.size()); memcpy(data(), d.data(), d.size());}
|
||||||
|
|
||||||
|
PIByteArray & operator =(const PIByteArray & o) {if (this == &o) return *this; clear(); append(o); return *this;}
|
||||||
|
|
||||||
|
PIByteArray & operator =(PIByteArray && o) {swap(o); return *this;}
|
||||||
|
|
||||||
static PIByteArray fromUserInput(PIString str);
|
static PIByteArray fromUserInput(PIString str);
|
||||||
static PIByteArray fromHex(PIString str);
|
static PIByteArray fromHex(PIString str);
|
||||||
static PIByteArray fromBase64(const PIByteArray & base64);
|
static PIByteArray fromBase64(const PIByteArray & base64);
|
||||||
|
|||||||
@@ -23,6 +23,8 @@ int main (int argc, char * argv[]) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
# define PIP_CONSOLE_STATIC_DEFINE
|
||||||
|
# include "pip_console_export.h"
|
||||||
# include "piscreentypes.h"
|
# include "piscreentypes.h"
|
||||||
# include "pisharedmemory.h"
|
# include "pisharedmemory.h"
|
||||||
# include "pifile.h"
|
# include "pifile.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user