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

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

?? stream.h

?? 浙江大學的悟空嵌入式系統模擬器
?? H
?? 第 1 頁 / 共 2 頁
字號:
/////////////////////////////////////////////////////////////////////////////
// Name:        wx/stream.h
// Purpose:     stream classes
// Author:      Guilhem Lavaux, Guillermo Rodriguez Garcia, Vadim Zeitlin
// Modified by:
// Created:     11/07/98
// RCS-ID:      $Id: stream.h,v 1.1 2005/03/16 06:49:26 kehc Exp $
// Copyright:   (c) Guilhem Lavaux
// Licence:     wxWindows license
/////////////////////////////////////////////////////////////////////////////

#ifndef _WX_WXSTREAM_H__
#define _WX_WXSTREAM_H__

#if defined(__GNUG__) && !defined(__APPLE__)
#pragma interface "stream.h"
#endif

#include "wx/defs.h"

#if wxUSE_STREAMS

#include <stdio.h>
#include "wx/object.h"
#include "wx/string.h"
#include "wx/filefn.h"  // for off_t, wxInvalidOffset and wxSeekMode

class WXDLLEXPORT wxStreamBase;
class WXDLLEXPORT wxInputStream;
class WXDLLEXPORT wxOutputStream;

typedef wxInputStream& (*__wxInputManip)(wxInputStream&);
typedef wxOutputStream& (*__wxOutputManip)(wxOutputStream&);

WXDLLEXPORT wxOutputStream& wxEndL(wxOutputStream& o_stream);

// ----------------------------------------------------------------------------
// constants
// ----------------------------------------------------------------------------

enum wxStreamError
{
    wxSTREAM_NO_ERROR = 0,      // stream is in good state
    wxSTREAM_EOF,               // EOF reached in Read() or similar
    wxSTREAM_WRITE_ERROR,       // generic write error
    wxSTREAM_READ_ERROR         // generic read error
};

// compatibility
#if WXWIN_COMPATIBILITY_2_2
    #define wxStream_NOERROR    wxSTREAM_NOERROR
    #define wxStream_EOF        wxSTREAM_EOF
    #define wxStream_WRITE_ERR  wxSTREAM_WRITE_ERROR
    #define wxStream_READ_ERR   wxSTREAM_READ_ERROR

    #define wxSTREAM_NO_ERR     wxSTREAM_NO_ERROR
    #define wxSTREAM_NOERROR    wxSTREAM_NO_ERROR
    #define wxSTREAM_WRITE_ERR  wxSTREAM_WRITE_ERROR
    #define wxSTREAM_READ_ERR   wxSTREAM_READ_ERROR
#endif // WXWIN_COMPATIBILITY_2_2

// ============================================================================
// base stream classes: wxInputStream and wxOutputStream
// ============================================================================

// ---------------------------------------------------------------------------
// wxStreamBase: common (but non virtual!) base for all stream classes
// ---------------------------------------------------------------------------

class WXDLLEXPORT wxStreamBase
{
public:
    wxStreamBase();
    virtual ~wxStreamBase();

    // error testing
    wxStreamError GetLastError() const { return m_lasterror; }
    bool IsOk() const { return GetLastError() == wxSTREAM_NO_ERROR; }
    bool operator!() const { return !IsOk(); }

    // reset the stream state
    void Reset() { m_lasterror = wxSTREAM_NO_ERROR; }

    // deprecated (doesn't make sense!), don't use
    virtual size_t GetSize() const { return 0; }

#if WXWIN_COMPATIBILITY_2_2
    // deprecated, for compatibility only
    wxStreamError LastError() const { return m_lasterror; }
    size_t StreamSize() const { return GetSize(); }
#endif // WXWIN_COMPATIBILITY_2_2

protected:
    virtual off_t OnSysSeek(off_t seek, wxSeekMode mode);
    virtual off_t OnSysTell() const;

    size_t m_lastcount;
    wxStreamError m_lasterror;

    friend class wxStreamBuffer;
};

// ----------------------------------------------------------------------------
// wxInputStream: base class for the input streams
// ----------------------------------------------------------------------------

class WXDLLEXPORT wxInputStream : public wxStreamBase
{
public:
    // ctor and dtor, nothing exciting
    wxInputStream();
    virtual ~wxInputStream();


    // IO functions
    // ------------

    // return a character from the stream without removing it, i.e. it will
    // still be returned by the next call to GetC()
    //
    // blocks until something appears in the stream if necessary, if nothing
    // ever does (i.e. EOF) LastRead() will return 0 (and the return value is
    // undefined), otherwise 1
    virtual char Peek();

    // return one character from the stream, blocking until it appears if
    // necessary
    //
    // if EOF, return value is undefined and LastRead() will return 0 and not 1
    char GetC();

    // read at most the given number of bytes from the stream
    //
    // there are 2 possible situations here: either there is nothing at all in
    // the stream right now in which case Read() blocks until something appears
    // (use CanRead() to avoid this) or there is already some data available in
    // the stream and then Read() doesn't block but returns just the data it
    // can read without waiting for more
    //
    // in any case, if there are not enough bytes in the stream right now,
    // LastRead() value will be less than size but greater than 0. If it is 0,
    // it means that EOF has been reached.
    virtual wxInputStream& Read(void *buffer, size_t size);

    // copy the entire contents of this stream into streamOut, stopping only
    // when EOF is reached or an error occurs
    wxInputStream& Read(wxOutputStream& streamOut);


    // status functions
    // ----------------

    // returns the number of bytes read by the last call to Read(), GetC() or
    // Peek()
    //
    // this should be used to discover whether that call succeeded in reading
    // all the requested data or not
    virtual size_t LastRead() const { return wxStreamBase::m_lastcount; }

    // returns TRUE if some data is available in the stream right now, so that
    // calling Read() wouldn't block
    virtual bool CanRead() const;

    // is the stream at EOF?
    //
    // note that this cannot be really implemented for all streams and
    // CanRead() is more reliable than Eof()
    virtual bool Eof() const;


    // write back buffer
    // -----------------

    // put back the specified number of bytes into the stream, they will be
    // fetched by the next call to the read functions
    //
    // returns the number of bytes really stuffed back
    size_t Ungetch(const void *buffer, size_t size);

    // put back the specified character in the stream
    //
    // returns TRUE if ok, FALSE on error
    bool Ungetch(char c);


    // position functions
    // ------------------

    // move the stream pointer to the given position (if the stream supports
    // it)
    //
    // returns wxInvalidOffset on error
    virtual off_t SeekI(off_t pos, wxSeekMode mode = wxFromStart);

    // return the current position of the stream pointer or wxInvalidOffset
    virtual off_t TellI() const;


    // stream-like operators
    // ---------------------

    wxInputStream& operator>>(wxOutputStream& out) { return Read(out); }
    wxInputStream& operator>>(__wxInputManip func) { return func(*this); }

protected:
    // do read up to size bytes of data into the provided buffer
    //
    // this method should return 0 if EOF has been reached or an error occured
    // (m_lasterror should be set accordingly as well) or the number of bytes
    // read
    virtual size_t OnSysRead(void *buffer, size_t size) = 0;

    // write-back buffer support
    // -------------------------

    // return the pointer to a buffer big enough to hold sizeNeeded bytes
    char *AllocSpaceWBack(size_t sizeNeeded);

    // read up to size data from the write back buffer, return the number of
    // bytes read
    size_t GetWBack(void *buf, size_t size);

    // write back buffer or NULL if none
    char *m_wback;

    // the size of the buffer
    size_t m_wbacksize;

    // the current position in the buffer
    size_t m_wbackcur;

    friend class wxStreamBuffer;
};

// ----------------------------------------------------------------------------
// wxOutputStream: base for the output streams
// ----------------------------------------------------------------------------

class WXDLLEXPORT wxOutputStream : public wxStreamBase
{
public:
    wxOutputStream();
    virtual ~wxOutputStream();

    void PutC(char c);
    virtual wxOutputStream& Write(const void *buffer, size_t size);
    wxOutputStream& Write(wxInputStream& stream_in);

    virtual off_t SeekO(off_t pos, wxSeekMode mode = wxFromStart);
    virtual off_t TellO() const;

    virtual size_t LastWrite() const { return wxStreamBase::m_lastcount; }

    virtual void Sync();

    wxOutputStream& operator<<(wxInputStream& out) { return Write(out); }
    wxOutputStream& operator<<( __wxOutputManip func) { return func(*this); }

protected:

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人99久久亚洲综合精品| 91超碰这里只有精品国产| 99国产精品国产精品久久| 欧美优质美女网站| 久久人人爽人人爽| 亚洲mv在线观看| jlzzjlzz欧美大全| 欧美成人一区二区三区片免费| 亚洲色图制服诱惑| 风间由美一区二区三区在线观看| 欧美精品aⅴ在线视频| 亚洲区小说区图片区qvod| 国产一区三区三区| 欧美一区二区精品在线| 一区二区久久久| 91亚洲精品乱码久久久久久蜜桃 | 国产福利一区二区三区视频在线 | 日韩一区中文字幕| 国产精品一区二区三区99| 欧美丰满美乳xxx高潮www| 亚洲日本va午夜在线影院| 成人毛片在线观看| 国产欧美一区二区三区沐欲 | 亚洲国产裸拍裸体视频在线观看乱了 | 性做久久久久久免费观看| 99这里只有久久精品视频| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 国内精品伊人久久久久av一坑| 欧美三级欧美一级| 亚洲午夜av在线| 欧美午夜精品电影| 亚洲一区二区偷拍精品| 欧美伊人久久久久久久久影院| 亚洲精品免费视频| 欧美性做爰猛烈叫床潮| 夜夜嗨av一区二区三区网页| 欧美亚洲日本一区| 亚洲嫩草精品久久| 色哦色哦哦色天天综合| 亚洲精品乱码久久久久久日本蜜臀| 99精品黄色片免费大全| 亚洲激情图片一区| 在线观看精品一区| 日韩av在线播放中文字幕| 欧美一区永久视频免费观看| 蜜桃在线一区二区三区| 精品成人佐山爱一区二区| 国产精品一二三四区| 国产精品久久毛片a| 色婷婷av一区二区三区gif| 亚洲综合在线观看视频| 777久久久精品| 国产一区欧美日韩| 亚洲欧洲一区二区三区| 欧洲一区二区三区免费视频| 肉丝袜脚交视频一区二区| 欧美成人三级电影在线| 成人精品gif动图一区| 一区二区三区在线观看欧美| 日韩一区二区视频| 国产超碰在线一区| 亚洲电影一区二区三区| 精品理论电影在线| 91网站在线观看视频| 无码av中文一区二区三区桃花岛| 欧美xxx久久| 91网址在线看| 久久福利资源站| 亚洲免费观看在线观看| 日韩三级在线免费观看| 99久久国产综合精品女不卡| 三级欧美韩日大片在线看| 国产三级精品三级| 欧美久久一区二区| 成人精品视频一区| 欧美aaaaaa午夜精品| 国产精品久久久久久久久搜平片 | 国产成人精品三级麻豆| 亚洲成人一区二区在线观看| 亚洲精品一区二区在线观看| 在线观看日韩毛片| 成人永久aaa| 蜜臀av一区二区在线免费观看| 国产精品伦理一区二区| 日韩一级大片在线观看| www.66久久| 国产一区中文字幕| 日韩av中文字幕一区二区| 亚洲乱码国产乱码精品精98午夜| 久久先锋影音av| 欧美美女一区二区| 色综合视频一区二区三区高清| 国模一区二区三区白浆| 日韩国产一二三区| 亚洲综合色网站| 亚洲色图色小说| 国产精品毛片久久久久久久| 精品国产乱码久久久久久夜甘婷婷| 欧美色手机在线观看| 97精品国产露脸对白| 国产一区视频网站| 蜜桃精品在线观看| 午夜电影网一区| 亚洲国产成人高清精品| 亚洲人成伊人成综合网小说| 国产精品私房写真福利视频| 久久婷婷久久一区二区三区| 日韩一级免费一区| 欧美一区二区三区在线观看| 精品视频123区在线观看| 色欧美88888久久久久久影院| bt7086福利一区国产| 不卡一区二区在线| 成人国产精品免费网站| 大桥未久av一区二区三区中文| 国产乱子轮精品视频| 精品一区二区三区在线播放| 美女视频黄频大全不卡视频在线播放| 一区二区激情视频| 亚洲va欧美va国产va天堂影院| 亚洲激情中文1区| 亚洲一二三专区| 亚洲mv在线观看| 麻豆91精品视频| 狠狠色丁香婷综合久久| 韩国av一区二区三区| 国产宾馆实践打屁股91| 成人av在线看| 欧美性淫爽ww久久久久无| 欧美视频一区二区| 日韩一级大片在线| 久久婷婷久久一区二区三区| 国产欧美一区二区精品忘忧草| 中文在线一区二区| 亚洲嫩草精品久久| 秋霞影院一区二区| 国产一区二区三区在线观看免费视频| 国产美女在线观看一区| www.激情成人| 欧美午夜寂寞影院| 精品国产sm最大网站免费看| 日本一区二区成人| 亚洲激情av在线| 美女www一区二区| 成人永久看片免费视频天堂| 欧美色偷偷大香| 国产欧美日韩亚州综合| 亚洲欧美国产三级| 日韩av电影天堂| 粉嫩欧美一区二区三区高清影视 | 欧美另类久久久品| 久久久蜜桃精品| 一区二区三区在线免费视频| 青青草原综合久久大伊人精品优势| 激情亚洲综合在线| 91网站在线观看视频| 欧美成人精品1314www| 亚洲欧美自拍偷拍| 久久精品国产亚洲5555| 91原创在线视频| 精品久久久久久综合日本欧美| 亚洲视频综合在线| 国产在线国偷精品免费看| 91麻豆精品一区二区三区| 欧美xxxx老人做受| 亚洲人成精品久久久久| 国产在线视视频有精品| 欧美日韩亚洲国产综合| 中日韩免费视频中文字幕| 青青草国产精品亚洲专区无| 99久久精品国产一区二区三区| 欧美va亚洲va| 午夜视频在线观看一区二区| hitomi一区二区三区精品| 欧美第一区第二区| 亚洲国产另类精品专区| 99久久伊人久久99| 久久婷婷综合激情| 日本va欧美va精品| 欧美日韩一区二区三区视频| 亚洲欧美怡红院| 国产成人精品午夜视频免费| 精品日韩一区二区| 香蕉加勒比综合久久| 色婷婷亚洲婷婷| 成人欧美一区二区三区视频网页| 国产一区二区中文字幕| 日韩欧美黄色影院| 丝瓜av网站精品一区二区| 色偷偷一区二区三区| 综合电影一区二区三区| eeuss鲁片一区二区三区| 国产日产欧美一区| 国产一区二区在线视频| 精品国内二区三区| 国内精品伊人久久久久av影院| 日韩三级av在线播放| 久久国产精品72免费观看| 日韩精品一区二区三区蜜臀 | 欧美经典三级视频一区二区三区|