PIByteArray works on binary stream
This commit is contained in:
@@ -1172,9 +1172,9 @@ inline PICout operator<<(PICout s, const PIMathMatrix<Type> &m) {
|
||||
* @param v PIMathMatrix type
|
||||
* @return PIBiteArray serialized PIMathMatrix
|
||||
*/
|
||||
template<typename Type>
|
||||
inline PIByteArray &operator<<(PIByteArray &s, const PIMathMatrix<Type> &v) {
|
||||
s << (const PIVector2D<Type> &) v;
|
||||
template <typename P, typename T>
|
||||
inline PIBinaryStream<P> & operator <<(PIBinaryStream<P> & s, const PIMathMatrix<T> & v) {
|
||||
s << (const PIVector2D<T> &) v;
|
||||
return s;
|
||||
}
|
||||
|
||||
@@ -1185,9 +1185,9 @@ inline PIByteArray &operator<<(PIByteArray &s, const PIMathMatrix<Type> &v) {
|
||||
* @param v PIMathMatrix type
|
||||
* @return PIMathMatrix deserialized from PIByteArray
|
||||
*/
|
||||
template<typename Type>
|
||||
inline PIByteArray &operator>>(PIByteArray &s, PIMathMatrix<Type> &v) {
|
||||
s >> (PIVector2D<Type> &) v;
|
||||
template <typename P, typename T>
|
||||
inline PIBinaryStream<P> & operator >>(PIBinaryStream<P> & s, PIMathMatrix<T> & v) {
|
||||
s >> (PIVector2D<T> &) v;
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user