diff --git a/CMakeLists.txt b/CMakeLists.txt index 365a54ed..2c4ad3df 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_policy(SET CMP0017 NEW) # need include() with .cmake project(PIP) set(PIP_MAJOR 3) set(PIP_MINOR 6) -set(PIP_REVISION 0) +set(PIP_REVISION 1) set(PIP_SUFFIX ) set(PIP_COMPANY SHS) set(PIP_DOMAIN org.SHS) diff --git a/libs/main/core/pibinarystream.h b/libs/main/core/pibinarystream.h index 94133e32..cf9e184a 100644 --- a/libs/main/core/pibinarystream.h +++ b/libs/main/core/pibinarystream.h @@ -82,7 +82,7 @@ public: //!\~\details //!\~russian Возвращает -1 если нет информации о размере ssize_t binaryStreamSize() const { - return static_cast
(this)->binaryStreamSizeImp();
+ return static_cast & operator >>(PIBinary
return s.p;
}
+template & operator <<(PIBinaryStreamTrivialRef s, const PIMemoryBlock v) {
+ s.p << v;
+ return s.p;
+}
+template & operator >>(PIBinaryStreamTrivialRef s, PIMemoryBlock v) {
+ s.p >> v;
+ return s.p;
+}
+
// specify types
template & operator <<(PIBinaryStream & s, const bool v) {