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

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

?? zstream.h

?? emacs的一個非常有用的插件,叫xrefactory,可以實現source insight里的那種函數跳轉.和cscope(跳回來不方便)配合使用,非常的不錯.
?? H
字號:
/* * * Copyright (c) 1997 * Christian Michelsen Research AS * Advanced Computing * Fantoftvegen 38, 5036 BERGEN, Norway * http://www.cmr.no * * Permission to use, copy, modify, distribute and sell this software * and its documentation for any purpose is hereby granted without fee, * provided that the above copyright notice appear in all copies and * that both that copyright notice and this permission notice appear * in supporting documentation.  Christian Michelsen Research AS makes no * representations about the suitability of this software for any * purpose.  It is provided "as is" without express or implied warranty. * */#ifndef ZSTREAM__H#define ZSTREAM__H/* * zstream.h - C++ interface to the 'zlib' general purpose compression library * $Id: zstream.h,v 1.1.1.1 2002/02/13 21:20:27 vittek Exp $ */#include <strstream.h>#include <string.h>#include <stdio.h>#include "zlib.h"#if defined(_WIN32)#   include <fcntl.h>#   include <io.h>#   define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)#else#   define SET_BINARY_MODE(file)#endifclass zstringlen {public:    zstringlen(class izstream&);    zstringlen(class ozstream&, const char*);    size_t value() const { return val.word; }private:    struct Val { unsigned char byte; size_t word; } val;};//  ----------------------------- izstream -----------------------------class izstream{    public:        izstream() : m_fp(0) {}        izstream(FILE* fp) : m_fp(0) { open(fp); }        izstream(const char* name) : m_fp(0) { open(name); }        ~izstream() { close(); }        /* Opens a gzip (.gz) file for reading.         * open() can be used to read a file which is not in gzip format;         * in this case read() will directly read from the file without         * decompression. errno can be checked to distinguish two error         * cases (if errno is zero, the zlib error is Z_MEM_ERROR).         */        void open(const char* name) {            if (m_fp) close();            m_fp = ::gzopen(name, "rb");        }        void open(FILE* fp) {            SET_BINARY_MODE(fp);            if (m_fp) close();            m_fp = ::gzdopen(fileno(fp), "rb");        }        /* Flushes all pending input if necessary, closes the compressed file         * and deallocates all the (de)compression state. The return value is         * the zlib error number (see function error() below).         */        int close() {            int r = ::gzclose(m_fp);            m_fp = 0; return r;        }        /* Binary read the given number of bytes from the compressed file.         */        int read(void* buf, size_t len) {            return ::gzread(m_fp, buf, len);        }        /* Returns the error message for the last error which occurred on the         * given compressed file. errnum is set to zlib error number. If an         * error occurred in the file system and not in the compression library,         * errnum is set to Z_ERRNO and the application may consult errno         * to get the exact error code.         */        const char* error(int* errnum) {            return ::gzerror(m_fp, errnum);        }        gzFile fp() { return m_fp; }    private:        gzFile m_fp;};/* * Binary read the given (array of) object(s) from the compressed file. * If the input file was not in gzip format, read() copies the objects number * of bytes into the buffer. * returns the number of uncompressed bytes actually read * (0 for end of file, -1 for error). */template <class T, class Items>inline int read(izstream& zs, T* x, Items items) {    return ::gzread(zs.fp(), x, items*sizeof(T));}/* * Binary input with the '>' operator. */template <class T>inline izstream& operator>(izstream& zs, T& x) {    ::gzread(zs.fp(), &x, sizeof(T));    return zs;}inline zstringlen::zstringlen(izstream& zs) {    zs > val.byte;    if (val.byte == 255) zs > val.word;    else val.word = val.byte;}/* * Read length of string + the string with the '>' operator. */inline izstream& operator>(izstream& zs, char* x) {    zstringlen len(zs);    ::gzread(zs.fp(), x, len.value());    x[len.value()] = '\0';    return zs;}inline char* read_string(izstream& zs) {    zstringlen len(zs);    char* x = new char[len.value()+1];    ::gzread(zs.fp(), x, len.value());    x[len.value()] = '\0';    return x;}// ----------------------------- ozstream -----------------------------class ozstream{    public:        ozstream() : m_fp(0), m_os(0) {        }        ozstream(FILE* fp, int level = Z_DEFAULT_COMPRESSION)            : m_fp(0), m_os(0) {            open(fp, level);        }        ozstream(const char* name, int level = Z_DEFAULT_COMPRESSION)            : m_fp(0), m_os(0) {            open(name, level);        }        ~ozstream() {            close();        }        /* Opens a gzip (.gz) file for writing.         * The compression level parameter should be in 0..9         * errno can be checked to distinguish two error cases         * (if errno is zero, the zlib error is Z_MEM_ERROR).         */        void open(const char* name, int level = Z_DEFAULT_COMPRESSION) {            char mode[4] = "wb\0";            if (level != Z_DEFAULT_COMPRESSION) mode[2] = '0'+level;            if (m_fp) close();            m_fp = ::gzopen(name, mode);        }        /* open from a FILE pointer.         */        void open(FILE* fp, int level = Z_DEFAULT_COMPRESSION) {            SET_BINARY_MODE(fp);            char mode[4] = "wb\0";            if (level != Z_DEFAULT_COMPRESSION) mode[2] = '0'+level;            if (m_fp) close();            m_fp = ::gzdopen(fileno(fp), mode);        }        /* Flushes all pending output if necessary, closes the compressed file         * and deallocates all the (de)compression state. The return value is         * the zlib error number (see function error() below).         */        int close() {            if (m_os) {                ::gzwrite(m_fp, m_os->str(), m_os->pcount());                delete[] m_os->str(); delete m_os; m_os = 0;            }            int r = ::gzclose(m_fp); m_fp = 0; return r;        }        /* Binary write the given number of bytes into the compressed file.         */        int write(const void* buf, size_t len) {            return ::gzwrite(m_fp, (voidp) buf, len);        }        /* Flushes all pending output into the compressed file. The parameter         * _flush is as in the deflate() function. The return value is the zlib         * error number (see function gzerror below). flush() returns Z_OK if         * the flush_ parameter is Z_FINISH and all output could be flushed.         * flush() should be called only when strictly necessary because it can         * degrade compression.         */        int flush(int _flush) {            os_flush();            return ::gzflush(m_fp, _flush);        }        /* Returns the error message for the last error which occurred on the         * given compressed file. errnum is set to zlib error number. If an         * error occurred in the file system and not in the compression library,         * errnum is set to Z_ERRNO and the application may consult errno         * to get the exact error code.         */        const char* error(int* errnum) {            return ::gzerror(m_fp, errnum);        }        gzFile fp() { return m_fp; }        ostream& os() {            if (m_os == 0) m_os = new ostrstream;            return *m_os;        }        void os_flush() {            if (m_os && m_os->pcount()>0) {                ostrstream* oss = new ostrstream;                oss->fill(m_os->fill());                oss->flags(m_os->flags());                oss->precision(m_os->precision());                oss->width(m_os->width());                ::gzwrite(m_fp, m_os->str(), m_os->pcount());                delete[] m_os->str(); delete m_os; m_os = oss;            }        }    private:        gzFile m_fp;        ostrstream* m_os;};/* * Binary write the given (array of) object(s) into the compressed file. * returns the number of uncompressed bytes actually written * (0 in case of error). */template <class T, class Items>inline int write(ozstream& zs, const T* x, Items items) {    return ::gzwrite(zs.fp(), (voidp) x, items*sizeof(T));}/* * Binary output with the '<' operator. */template <class T>inline ozstream& operator<(ozstream& zs, const T& x) {    ::gzwrite(zs.fp(), (voidp) &x, sizeof(T));    return zs;}inline zstringlen::zstringlen(ozstream& zs, const char* x) {    val.byte = 255;  val.word = ::strlen(x);    if (val.word < 255) zs < (val.byte = val.word);    else zs < val;}/* * Write length of string + the string with the '<' operator. */inline ozstream& operator<(ozstream& zs, const char* x) {    zstringlen len(zs, x);    ::gzwrite(zs.fp(), (voidp) x, len.value());    return zs;}#ifdef _MSC_VERinline ozstream& operator<(ozstream& zs, char* const& x) {    return zs < (const char*) x;}#endif/* * Ascii write with the << operator; */template <class T>inline ostream& operator<<(ozstream& zs, const T& x) {    zs.os_flush();    return zs.os() << x;}#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品综合一本久道在线视频| 在线观看亚洲一区| 爽爽淫人综合网网站| 亚洲欧美日韩小说| 17c精品麻豆一区二区免费| 国产午夜亚洲精品理论片色戒| 欧美成人video| 日韩精品一区二区三区中文精品| 91精品国产免费| 91精品国产综合久久福利软件| 欧美日韩和欧美的一区二区| 欧美日韩一区二区在线观看| 欧美日韩另类国产亚洲欧美一级| 欧美老肥妇做.爰bbww视频| 欧美丝袜自拍制服另类| 欧美日韩国产综合久久| 日韩视频一区二区在线观看| 久久久久久久久97黄色工厂| 国产精品久久久久久一区二区三区 | 精品国产免费一区二区三区四区| 亚洲精品一区二区三区精华液| 久久精品日韩一区二区三区| 国产精品女人毛片| 一区二区三区四区视频精品免费| 午夜精品久久久久影视| 美女精品一区二区| 国产+成+人+亚洲欧洲自线| 97久久人人超碰| 欧美日韩精品一区二区天天拍小说 | 午夜影视日本亚洲欧洲精品| 裸体歌舞表演一区二区| 成人一道本在线| 欧美天天综合网| 国产日韩欧美一区二区三区乱码| 夜夜精品视频一区二区| 久久99国产精品尤物| 色婷婷综合久久久中文一区二区| 欧美一区午夜精品| 久久久不卡网国产精品一区| 一区二区三区鲁丝不卡| 国产一区二区三区四| 欧美午夜精品电影| 欧美激情一区在线| 久久精品国产久精国产爱| 91丝袜国产在线播放| 日韩午夜在线播放| 亚洲色图欧美激情| 国产又黄又大久久| 欧美老女人第四色| 亚洲精品欧美在线| 国产精品影音先锋| 91麻豆精品国产91久久久| 亚洲欧美日韩久久| 国产盗摄视频一区二区三区| 欧美一区二区视频网站| 亚洲精品ww久久久久久p站| 国产乱码精品一区二区三区忘忧草| 在线观看不卡视频| 亚洲欧美在线高清| 国产大陆亚洲精品国产| 欧美xxxxxxxxx| 日韩成人av影视| 欧美日韩国产天堂| 一区二区视频在线看| 成人免费毛片app| 国产欧美日韩不卡| 极品少妇一区二区三区精品视频 | 国产麻豆精品视频| 精品美女一区二区| 久久av中文字幕片| 欧美不卡一区二区| 久久se精品一区精品二区| 欧美一区二区三区视频在线 | 亚洲国产精品av| 国产精品99久久久久久似苏梦涵| 精品国产污污免费网站入口 | 免费观看成人鲁鲁鲁鲁鲁视频| 欧日韩精品视频| 亚洲网友自拍偷拍| 欧美综合视频在线观看| 午夜激情一区二区| 91精品国产麻豆国产自产在线| 日韩激情一区二区| 欧美mv日韩mv国产网站app| 久久精品国产77777蜜臀| 日韩午夜在线观看| 激情六月婷婷久久| 国产精品少妇自拍| 日本丰满少妇一区二区三区| 一区二区三区在线观看国产| 欧美精品在线一区二区| 久久疯狂做爰流白浆xx| 国产精品网曝门| 国产成人精品影院| 亚洲激情av在线| 欧美精品精品一区| 久久99精品久久只有精品| 国产欧美日韩不卡免费| 91国产成人在线| 老汉av免费一区二区三区| 日本一二三不卡| 欧美人妖巨大在线| 韩国一区二区三区| 一区二区三区中文字幕精品精品 | 91理论电影在线观看| 亚洲v精品v日韩v欧美v专区| 精品欧美一区二区久久| av亚洲产国偷v产偷v自拍| 亚洲精品欧美综合四区| 日韩欧美国产精品| 91丨porny丨中文| 秋霞影院一区二区| 中文字幕中文乱码欧美一区二区| 91国产成人在线| 国产乱子伦视频一区二区三区| 亚洲精品国产成人久久av盗摄| 欧美一区二区三区免费大片 | 黑人巨大精品欧美一区| 亚洲欧美综合色| 日韩欧美不卡在线观看视频| 91啪亚洲精品| 国产激情一区二区三区桃花岛亚洲| 亚洲国产sm捆绑调教视频| 精品国产一区二区三区久久久蜜月 | 亚洲色图19p| 日韩欧美国产不卡| 欧美手机在线视频| 99国产精品久久久久久久久久| 免费人成在线不卡| 一区二区三区四区在线| 欧美国产禁国产网站cc| 欧美一区二区三区色| 一本久道中文字幕精品亚洲嫩| 国产乱人伦精品一区二区在线观看 | 亚洲在线中文字幕| 国产精品成人午夜| 久久久久久综合| 日韩欧美中文字幕公布| 欧美日韩国产免费一区二区 | 亚洲你懂的在线视频| 久久久亚洲欧洲日产国码αv| 91精品欧美一区二区三区综合在| 日本福利一区二区| 色综合久久久久综合| proumb性欧美在线观看| 福利一区福利二区| 国产精品自产自拍| 九九在线精品视频| 高清不卡一二三区| 国产精品99久久久久久有的能看| 久久99精品视频| 精油按摩中文字幕久久| 蜜桃av一区二区在线观看| 日本免费在线视频不卡一不卡二| 亚洲r级在线视频| 午夜av一区二区三区| 亚洲成人资源网| 婷婷六月综合亚洲| 免费成人性网站| 麻豆精品新av中文字幕| 麻豆91免费观看| 国产精品中文欧美| 成人avav影音| 色哟哟国产精品免费观看| 91成人免费电影| 91精品啪在线观看国产60岁| 日韩欧美国产wwwww| 久久精品视频一区| 亚洲色图欧美在线| 亚洲小少妇裸体bbw| 日本vs亚洲vs韩国一区三区 | 亚洲成人免费在线| 麻豆精品国产91久久久久久| 国产一区二区三区日韩| av在线不卡电影| 欧美视频日韩视频| 欧美一卡二卡三卡四卡| 久久视频一区二区| 中文字幕视频一区二区三区久| 一区二区三区日韩精品| 日本在线不卡视频| 国产成人av一区二区三区在线| 91在线播放网址| 欧美一区二区三区视频在线| 久久精品无码一区二区三区| 亚洲人吸女人奶水| 日韩有码一区二区三区| 国产精品一区二区免费不卡| 97久久久精品综合88久久| 欧美精品免费视频| 中文字幕av一区二区三区高| 亚洲尤物在线视频观看| 99国产精品国产精品久久| 在线播放视频一区| 欧美韩国日本综合| 麻豆国产91在线播放| 色综合天天综合网天天看片| 欧美一个色资源| 一区二区三区在线视频免费观看| 久草在线在线精品观看|