This commit is contained in:
2022-08-02 17:08:51 +03:00
parent af1264e42b
commit af9a9e78b9
14 changed files with 163 additions and 23 deletions

View File

@@ -773,6 +773,9 @@ REGISTER_VARIANT(PIMathVectord)
REGISTER_VARIANT(PIMathMatrixd)
//! \relatesalso PIBinaryStream
//! \~english Store operator.
//! \~russian Оператор сохранения.
BINARY_STREAM_WRITE(PIVariant) {
s << v._content << v._type;
if (v._type == PIVariant::pivCustom) {
@@ -788,6 +791,10 @@ BINARY_STREAM_WRITE(PIVariant) {
}
return s;
}
//! \relatesalso PIBinaryStream
//! \~english Restore operator.
//! \~russian Оператор извлечения.
BINARY_STREAM_READ(PIVariant) {
s >> v._content >> v._type;
if (v._type == PIVariant::pivCustom) {