new PIP support
This commit is contained in:
@@ -61,9 +61,13 @@ namespace CDUtils {
|
|||||||
|
|
||||||
# pragma pack(pop)
|
# 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, const PacketKDirectChange & v) {s << v.path << v.value; return s;}
|
||||||
inline PIByteArray & operator >>(PIByteArray & s, PacketKDirectChange & v) {s >> v.path >> v.value; return s;}
|
inline PIByteArray & operator >>(PIByteArray & s, PacketKDirectChange & v) {s >> v.path >> v.value; return s;}
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user