亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? qdatastream.cpp

?? QT 開發環境里面一個很重要的文件
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
    Reads an unsigned 16-bit integer from the stream into \a i, and    returns a reference to the stream.*//*!    \overload    Reads a signed 16-bit integer from the stream into \a i, and    returns a reference to the stream.*/QDataStream &QDataStream::operator>>(qint16 &i){    i = 0;    CHECK_STREAM_PRECOND(*this)    if (noswap) {        if (dev->read((char *)&i, 2) != 2) {            i = 0;            setStatus(ReadPastEnd);        }    } else {        register uchar *p = (uchar *)(&i);        char b[2];        if (dev->read(b, 2) == 2) {            *p++ = b[1];            *p = b[0];        } else {            setStatus(ReadPastEnd);        }    }    return *this;}/*!    \fn QDataStream &QDataStream::operator>>(quint32 &i)    \overload    Reads an unsigned 32-bit integer from the stream into \a i, and    returns a reference to the stream.*//*!    \overload    Reads a signed 32-bit integer from the stream into \a i, and    returns a reference to the stream.*/QDataStream &QDataStream::operator>>(qint32 &i){    i = 0;    CHECK_STREAM_PRECOND(*this)    if (noswap) {        if (dev->read((char *)&i, 4) != 4) {            i = 0;            setStatus(ReadPastEnd);        }    } else {                                        // swap bytes        uchar *p = (uchar *)(&i);        char b[4];        if (dev->read(b, 4) == 4) {            *p++ = b[3];            *p++ = b[2];            *p++ = b[1];            *p   = b[0];        } else {            setStatus(ReadPastEnd);        }    }    return *this;}/*!    \fn QDataStream &QDataStream::operator>>(quint64 &i)    \overload    Reads an unsigned 64-bit integer from the stream, into \a i, and    returns a reference to the stream.*//*!    \overload    Reads a signed 64-bit integer from the stream into \a i, and    returns a reference to the stream.*/QDataStream &QDataStream::operator>>(qint64 &i){    i = qint64(0);    CHECK_STREAM_PRECOND(*this)    if (version() < 6) {        quint32 i1, i2;        *this >> i2 >> i1;        i = ((quint64)i1 << 32) + i2;    } else if (noswap) {                        // no conversion needed        if (dev->read((char *)&i, 8) != 8) {            i = qint64(0);            setStatus(ReadPastEnd);        }    } else {                                        // swap bytes        uchar *p = (uchar *)(&i);        char b[8];        if (dev->read(b, 8) == 8) {            *p++ = b[7];            *p++ = b[6];            *p++ = b[5];            *p++ = b[4];            *p++ = b[3];            *p++ = b[2];            *p++ = b[1];            *p   = b[0];        } else {            setStatus(ReadPastEnd);        }    }    return *this;}/*!    Reads a boolean value from the stream into \a i. Returns a    reference to the stream.*/QDataStream &QDataStream::operator>>(bool &i){    qint8 v;    *this >> v;    i = !!v;    return *this;}/*!    \overload    Reads a 32-bit floating point number from the stream into \a f,    using the standard IEEE 754 format. Returns a reference to the    stream.*/QDataStream &QDataStream::operator>>(float &f){    f = 0.0f;    CHECK_STREAM_PRECOND(*this)    if (noswap) {        if (dev->read((char *)&f, 4) != 4) {            f = 0.0f;            setStatus(ReadPastEnd);        }    } else {                                        // swap bytes        uchar *p = (uchar *)(&f);        char b[4];        if (dev->read(b, 4) == 4) {            *p++ = b[3];            *p++ = b[2];            *p++ = b[1];            *p = b[0];        } else {            setStatus(ReadPastEnd);        }    }    return *this;}/*!    \overload    Reads a 64-bit floating point number from the stream into \a f,    using the standard IEEE 754 format. Returns a reference to the    stream.*/QDataStream &QDataStream::operator>>(double &f){    f = 0.0;    CHECK_STREAM_PRECOND(*this)    if (noswap) {        if (dev->read((char *)&f, 8) != 8) {            f = 0.0;            setStatus(ReadPastEnd);        }    } else {                                        // swap bytes        register uchar *p = (uchar *)(&f);        char b[8];        if (dev->read(b, 8) == 8) {            *p++ = b[7];            *p++ = b[6];            *p++ = b[5];            *p++ = b[4];            *p++ = b[3];            *p++ = b[2];            *p++ = b[1];            *p   = b[0];        } else {            setStatus(ReadPastEnd);        }    }    return *this;}/*!    \overload    Reads the '\0'-terminated string \a s from the stream and returns    a reference to the stream.    Space for the string is allocated using \c new -- the caller must    destroy it with \c{delete[]}.*/QDataStream &QDataStream::operator>>(char *&s){    uint len = 0;    return readBytes(s, len);}/*!    Reads the buffer \a s from the stream and returns a reference to    the stream.    The buffer \a s is allocated using \c new. Destroy it with the \c    delete[] operator.    The \a l parameter is set to the length of the buffer. If the    string read is empty, \a l is set to 0 and \a s is set to    a null pointer.    The serialization format is a quint32 length specifier first,    then \a l bytes of data.    \sa readRawData(), writeBytes()*/QDataStream &QDataStream::readBytes(char *&s, uint &l){    s = 0;    l = 0;    CHECK_STREAM_PRECOND(*this)    quint32 len;    *this >> len;    if (len == 0)        return *this;    const quint32 Step = 1024 * 1024;    quint32 allocated = 0;    char *prevBuf = 0;    char *curBuf = 0;    do {        int blockSize = qMin(Step, len - allocated);        prevBuf = curBuf;        curBuf = new char[allocated + blockSize + 1];        if (prevBuf) {            memcpy(curBuf, prevBuf, allocated);            delete [] prevBuf;        }        if (dev->read(curBuf + allocated, blockSize) != blockSize) {            delete [] curBuf;            setStatus(ReadPastEnd);            return *this;        }        allocated += blockSize;    } while (allocated < len);    s = curBuf;    s[len] = '\0';    l = (uint)len;    return *this;}/*!    Reads at most \a len bytes from the stream into \a s and returns the number of    bytes read. If an error occurs, this function returns -1.    The buffer \a s must be preallocated. The data is \e not encoded.    \sa readBytes(), QIODevice::read(), writeRawData()*/int QDataStream::readRawData(char *s, int len){    CHECK_STREAM_PRECOND(-1)    return dev->read(s, len);}/*****************************************************************************  QDataStream write functions *****************************************************************************//*!    \fn QDataStream &QDataStream::operator<<(quint8 i)    \overload    Writes an unsigned byte, \a i, to the stream and returns a    reference to the stream.*//*!    Writes a signed byte, \a i, to the stream and returns a reference    to the stream.*/QDataStream &QDataStream::operator<<(qint8 i){    CHECK_STREAM_PRECOND(*this)    dev->putChar(i);    return *this;}/*!    \fn QDataStream &QDataStream::operator<<(quint16 i)    \overload    Writes an unsigned 16-bit integer, \a i, to the stream and returns    a reference to the stream.*//*!    \overload    Writes a signed 16-bit integer, \a i, to the stream and returns a    reference to the stream.*/QDataStream &QDataStream::operator<<(qint16 i){    CHECK_STREAM_PRECOND(*this)    if (noswap) {        dev->write((char *)&i, sizeof(qint16));    } else {                                        // swap bytes        register uchar *p = (uchar *)(&i);        char b[2];        b[1] = *p++;        b[0] = *p;        dev->write(b, 2);    }    return *this;}/*!    \overload    Writes a signed 32-bit integer, \a i, to the stream and returns a    reference to the stream.*/QDataStream &QDataStream::operator<<(qint32 i){    CHECK_STREAM_PRECOND(*this)    if (noswap) {        dev->write((char *)&i, sizeof(qint32));    } else {                                        // swap bytes        register uchar *p = (uchar *)(&i);        char b[4];        b[3] = *p++;        b[2] = *p++;        b[1] = *p++;        b[0] = *p;        dev->write(b, 4);    }    return *this;}/*!    \fn QDataStream &QDataStream::operator<<(quint64 i)    \overload    Writes an unsigned 64-bit integer, \a i, to the stream and returns a    reference to the stream.*//*!    \overload    Writes a signed 64-bit integer, \a i, to the stream and returns a    reference to the stream.*/QDataStream &QDataStream::operator<<(qint64 i){    CHECK_STREAM_PRECOND(*this)    if (version() < 6) {	quint32 i1 = i & 0xffffffff;	quint32 i2 = i >> 32;	*this << i2 << i1;    } else if (noswap) {                        // no conversion needed        dev->write((char *)&i, sizeof(qint64));    } else {                                        // swap bytes        register uchar *p = (uchar *)(&i);        char b[8];        b[7] = *p++;        b[6] = *p++;        b[5] = *p++;        b[4] = *p++;        b[3] = *p++;        b[2] = *p++;        b[1] = *p++;        b[0] = *p;        dev->write(b, 8);    }    return *this;}/*!    \fn QDataStream &QDataStream::operator<<(quint32 i)    \overload    Writes an unsigned integer, \a i, to the stream as a 32-bit    unsigned integer (quint32). Returns a reference to the stream.*//*!    Writes a boolean value, \a i, to the stream. Returns a reference    to the stream.*/QDataStream &QDataStream::operator<<(bool i){    CHECK_STREAM_PRECOND(*this)    dev->putChar(qint8(i));    return *this;}/*!    \overload    Writes a 32-bit floating point number, \a f, to the stream using    the standard IEEE 754 format. Returns a reference to the stream.*/QDataStream &QDataStream::operator<<(float f){    CHECK_STREAM_PRECOND(*this)    float g = f;                                // fixes float-on-stack problem    if (noswap) {                                // no conversion needed        dev->write((char *)&g, sizeof(float));    } else {                                // swap bytes        register uchar *p = (uchar *)(&g);        char b[4];        b[3] = *p++;        b[2] = *p++;        b[1] = *p++;        b[0] = *p;        dev->write(b, 4);    }    return *this;}/*!    \overload    Writes a 64-bit floating point number, \a f, to the stream using    the standard IEEE 754 format. Returns a reference to the stream.*/QDataStream &QDataStream::operator<<(double f){    CHECK_STREAM_PRECOND(*this)    if (noswap) {        dev->write((char *)&f, sizeof(double));    } else {        register uchar *p = (uchar *)(&f);        char b[8];        b[7] = *p++;        b[6] = *p++;        b[5] = *p++;        b[4] = *p++;        b[3] = *p++;        b[2] = *p++;        b[1] = *p++;        b[0] = *p;        dev->write(b, 8);    }    return *this;}/*!    \overload    Writes the '\0'-terminated string \a s to the stream and returns a    reference to the stream.    The string is serialized using writeBytes().*/QDataStream &QDataStream::operator<<(const char *s){    if (!s) {        *this << (quint32)0;        return *this;    }    uint len = qstrlen(s) + 1;                        // also write null terminator    *this << (quint32)len;                        // write length specifier    writeRawData(s, len);    return *this;}/*!    Writes the length specifier \a len and the buffer \a s to the    stream and returns a reference to the stream.    The \a len is serialized as a quint32, followed by \a len bytes    from \a s. Note that the data is \e not encoded.    \sa writeRawData(), readBytes()*/QDataStream &QDataStream::writeBytes(const char *s, uint len){    CHECK_STREAM_PRECOND(*this)    *this << (quint32)len;                        // write length specifier    if (len)        writeRawData(s, len);    return *this;}/*!    Writes \a len bytes from \a s to the stream. Returns the    number of bytes actually written, or -1 on error.    The data is \e not encoded.    \sa writeBytes(), QIODevice::write(), readRawData()*/int QDataStream::writeRawData(const char *s, int len){    CHECK_STREAM_PRECOND(-1)    return dev->write(s, len);}/*!    \since 4.1    Skips \a len bytes from the device. Returns the number of bytes    actually skipped, or -1 on error.        This is equivalent to calling readRawData() on a buffer of length    \a len and ignoring the buffer.    \sa QIODevice::seek()*/int QDataStream::skipRawData(int len){    CHECK_STREAM_PRECOND(-1)    if (dev->isSequential()) {        char buf[4096];        int sumRead = 0;        while (len > 0) {            int blockSize = qMin(len, (int)sizeof(buf));            int n = dev->read(buf, blockSize);            if (n == -1)                return -1;            if (n == 0)                return sumRead;            sumRead += n;            len -= blockSize;        }        return sumRead;    } else {        quint64 pos = dev->pos();        len = qMin(int(dev->size() - pos), len);        if (!dev->seek(pos + len))            return -1;        return len;    }}#ifdef QT3_SUPPORT/*!    \fn QDataStream &QDataStream::readRawBytes(char *str, uint len)    Use readRawData() instead.*//*!    \fn QDataStream &QDataStream::writeRawBytes(const char *str, uint len)    Use writeRawData() instead.*/#endif#endif // QT_NO_DATASTREAM

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91小视频免费看| 亚洲视频香蕉人妖| 国产精品麻豆久久久| 成人a区在线观看| 欧美国产欧美综合| 成人免费毛片片v| 亚洲视频一区二区在线观看| 欧洲人成人精品| 美国十次综合导航| 国产视频一区二区三区在线观看| 99精品视频在线播放观看| 一区二区成人在线视频| 欧美日韩一区二区三区免费看| 日韩激情av在线| 国产亚洲精品精华液| 色先锋aa成人| 麻豆91精品91久久久的内涵| 国产欧美一区二区精品秋霞影院| 91蝌蚪porny九色| 青青草原综合久久大伊人精品| 久久久天堂av| 在线观看91视频| 国产一区二区三区| 亚洲欧美激情视频在线观看一区二区三区| 欧美性做爰猛烈叫床潮| 国产一区二区三区高清播放| 亚洲欧美经典视频| 欧美mv日韩mv国产网站app| 99精品偷自拍| 久久国产综合精品| 亚洲色图19p| 精品国产3级a| 欧美午夜在线一二页| 国产精品69毛片高清亚洲| 一个色在线综合| 国产欧美一区二区精品秋霞影院| 欧美无人高清视频在线观看| 国产精品1区2区3区在线观看| 一区二区三区在线观看国产| 26uuu国产在线精品一区二区| 色哟哟亚洲精品| 国产精品一区久久久久| 五月婷婷欧美视频| 亚洲欧美日韩久久| 久久天天做天天爱综合色| 欧美日韩国产片| 91麻豆精品在线观看| 国产精品123区| 久久av资源站| 午夜精品久久久久久久蜜桃app | 欧美一区二区性放荡片| 色94色欧美sute亚洲线路一久| 国内精品免费在线观看| 亚洲大片免费看| 樱花影视一区二区| 成人免费在线观看入口| 国产亚洲自拍一区| 精品国产乱码久久久久久免费| 欧美自拍丝袜亚洲| caoporm超碰国产精品| 国产一区二区三区| 老司机精品视频线观看86| 日精品一区二区| 亚洲一区二区综合| 亚洲乱码中文字幕综合| 国产欧美视频一区二区三区| 精品不卡在线视频| 欧美一卡二卡在线观看| 在线成人小视频| 欧美亚洲综合久久| 色成人在线视频| 日本乱码高清不卡字幕| 一本高清dvd不卡在线观看| 成人av在线播放网址| 成人免费视频网站在线观看| 成人激情校园春色| av福利精品导航| 99免费精品在线观看| 91在线观看视频| 91高清视频在线| 欧美人伦禁忌dvd放荡欲情| 欧美日韩国产首页| 91精品国产手机| 欧美不卡一二三| 26uuu色噜噜精品一区| 国产欧美一区视频| 中文字幕在线一区免费| 亚洲精品免费在线观看| 亚洲一区二区三区爽爽爽爽爽| 午夜欧美大尺度福利影院在线看| 无码av免费一区二区三区试看| 男人的j进女人的j一区| 国产美女久久久久| jizz一区二区| 欧美日韩国产中文| 日韩无一区二区| 欧美国产精品一区二区三区| 一区精品在线播放| 亚洲一区二区美女| 男男视频亚洲欧美| 福利视频网站一区二区三区| 色综合天天综合网天天狠天天| 欧美日韩高清不卡| 欧美成人一区二区三区在线观看| 国产精品午夜在线| 亚洲图片欧美色图| 国产精品综合一区二区| av毛片久久久久**hd| 欧美裸体bbwbbwbbw| 久久久久国产精品麻豆ai换脸 | 国产婷婷精品av在线| 亚洲美女免费在线| 奇米色一区二区| a在线播放不卡| 欧美精品三级在线观看| 久久久国产午夜精品| 亚洲国产日韩在线一区模特| 国产精品自拍一区| 欧美午夜片在线看| 久久亚洲精品国产精品紫薇| 一区二区在线电影| 国产在线看一区| 欧美网站大全在线观看| 久久久久亚洲蜜桃| 午夜精品久久久久久久99水蜜桃 | 国产综合久久久久久鬼色| 91女神在线视频| 日韩免费在线观看| 亚洲一区二区在线观看视频 | 亚洲欧洲成人自拍| 加勒比av一区二区| 欧美日韩国产bt| 国产欧美一区二区精品秋霞影院 | 国产福利91精品一区二区三区| 在线视频欧美精品| 久久久久九九视频| 美女一区二区在线观看| 色婷婷久久99综合精品jk白丝| 久久久精品欧美丰满| 日韩制服丝袜先锋影音| 色噜噜狠狠色综合中国| 国产精品久久久99| 国产一区二区三区免费看| 欧美一区二区三级| 婷婷久久综合九色国产成人| 日本二三区不卡| 国产精品乱码久久久久久| 韩国欧美一区二区| 欧美高清视频不卡网| 亚洲高清视频的网址| 在线观看亚洲精品视频| 亚洲女子a中天字幕| 99精品在线观看视频| 国产精品无人区| 国产精品一品视频| 2024国产精品| 国模套图日韩精品一区二区 | 久久免费精品国产久精品久久久久| 午夜精品久久一牛影视| 欧美日韩精品欧美日韩精品| 亚洲一区二区三区精品在线| 欧美性猛交一区二区三区精品| 一区二区三区四区五区视频在线观看| 99久久精品免费看国产免费软件| 欧美经典一区二区三区| 国产91精品欧美| 中文字幕二三区不卡| 国产91对白在线观看九色| 国产情人综合久久777777| 国产精品性做久久久久久| 国产日韩三级在线| 成人免费高清在线观看| 亚洲日本va在线观看| 欧美影片第一页| 亚洲成人av电影| 日韩精品一区二区三区swag| 九九久久精品视频| 久久久久99精品一区| eeuss鲁片一区二区三区| 亚洲丝袜制服诱惑| 欧美视频三区在线播放| 日韩精品一二三四| 精品国产麻豆免费人成网站| 高清av一区二区| 一区二区在线观看视频在线观看| 欧美日韩一区二区三区免费看 | 国产原创一区二区| 久久蜜桃香蕉精品一区二区三区| 国产69精品久久777的优势| 亚洲欧美日韩国产中文在线| 欧美日韩免费在线视频| 久久69国产一区二区蜜臀| 国产亚洲一区二区在线观看| 色域天天综合网| 日韩精彩视频在线观看| 2021久久国产精品不只是精品| 这里只有精品免费| 精品午夜久久福利影院| 亚洲色图制服诱惑 | 精品国内二区三区|