PITextStream add long
This commit is contained in:
@@ -408,6 +408,22 @@ inline PITextStream<P> & operator>>(PITextStream<P> & s, uint & v) {
|
|||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//! \~english Read word as integer
|
||||||
|
//! \~russian Читает слово как целое
|
||||||
|
template<typename P>
|
||||||
|
inline PITextStream<P> & operator>>(PITextStream<P> & s, long & v) {
|
||||||
|
v = s.readWord().toLong();
|
||||||
|
return s;
|
||||||
|
}
|
||||||
|
|
||||||
|
//! \~english Read word as integer
|
||||||
|
//! \~russian Читает слово как целое
|
||||||
|
template<typename P>
|
||||||
|
inline PITextStream<P> & operator>>(PITextStream<P> & s, ulong & v) {
|
||||||
|
v = s.readWord().toULong();
|
||||||
|
return s;
|
||||||
|
}
|
||||||
|
|
||||||
//! \~english Read word as integer
|
//! \~english Read word as integer
|
||||||
//! \~russian Читает слово как целое
|
//! \~russian Читает слово как целое
|
||||||
template<typename P>
|
template<typename P>
|
||||||
|
|||||||
Reference in New Issue
Block a user