# dcop Library API Documentation

Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Namespaces | Source Files

# kdatastream.h

    00001 #ifndef __kdatastream__h
    00002 #define __kdatastream__h
    00003
    00004 #include <qdatastream.h>
    00005
    00006 inline QDataStream & operator << (QDataStream & str, bool b)
    00007 {
    00008   str << Q_INT8(b);
    00009   return str;
    00010 }
    00011
    00012 inline QDataStream & operator >> (QDataStream & str, bool & b)
    00013 {
    00014   Q_INT8 l;
    00015   str >> l;
    00016   b = bool(l);
    00017   return str;
    00018 }
    00019
    00020 #if QT_VERSION < 0x030200 && !defined(Q_WS_WIN) && !defined(Q_WS_MAC)
    00021 inline QDataStream & operator << (QDataStream & str, long long int ll)
    00022 {
    00023   Q_UINT32 l1,l2;
    00024   l1 = ll & 0xffffffffLL;
    00025   l2 = ll >> 32;
    00026   str << l1 << l2;
    00027   return str;
    00028 }
    00029
    00030 inline QDataStream & operator >> (QDataStream & str, long long int&ll)
    00031 {
    00032   Q_UINT32 l1,l2;
    00033   str >> l1 >> l2;
    00034   ll = ((unsigned long long int)(l2) << 32) + (long long int) l1;
    00035   return str;
    00036 }
    00037
    00038 inline QDataStream & operator << (QDataStream & str, unsigned long long int ll)
    00039 {
    00040   Q_UINT32 l1,l2;
    00041   l1 = ll & 0xffffffffLL;
    00042   l2 = ll >> 32;
    00043   str << l1 << l2;
    00044   return str;
    00045 }
    00046
    00047 inline QDataStream & operator >> (QDataStream & str, unsigned long long int &ll)
    00048 {
    00049   Q_UINT32 l1,l2;
    00050   str >> l1 >> l2;
    00051   ll = ((unsigned long long int)(l2) << 32) + (unsigned long long int) l1;
    00052   return str;
    00053 }
    00054 #endif
    00055
    00056 #endif

This file is part of the documentation for dcop Library Version 3.4.1.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat Jun 11 20:16:55 2005 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003