new PIP support

This commit is contained in:
2022-06-11 10:39:09 +03:00
parent 7164a8447c
commit b4bd6646b4

View File

@@ -61,9 +61,13 @@ namespace CDUtils {
# pragma pack(pop)
#ifdef PIP_BINARY_STREAM
BINARY_STREAM_WRITE(PacketKDirectChange) {s << v.path << v.value; return s;}
BINARY_STREAM_READ (PacketKDirectChange) {s >> v.path >> v.value; return s;}
#else
inline PIByteArray & operator <<(PIByteArray & s, const PacketKDirectChange & v) {s << v.path << v.value; return s;}
inline PIByteArray & operator >>(PIByteArray & s, PacketKDirectChange & v) {s >> v.path >> v.value; return s;}
#endif
}