亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
日韩电影在线观看电影| 中文字幕不卡在线观看| 成人免费毛片app| 精品一区二区免费视频| 日日摸夜夜添夜夜添精品视频| 悠悠色在线精品| 亚洲视频在线一区| 亚洲欧洲日产国码二区| 欧美国产亚洲另类动漫| 国产欧美日韩视频在线观看| 精品国产精品网麻豆系列| 日韩欧美专区在线| 91精品国产综合久久婷婷香蕉| 91.com视频| 欧美成人三级在线| 久久久久久久综合狠狠综合| 欧美激情一区二区三区蜜桃视频| 国产清纯在线一区二区www| 久久久精品国产免大香伊| 国产亚洲污的网站| 国产精品二三区| 亚洲黄色免费网站| 亚洲成人福利片| 蜜臀av性久久久久av蜜臀妖精 | 欧美亚洲一区二区在线观看| 日本电影欧美片| 欧美三级电影在线看| 欧美一区二区在线播放| 久久伊99综合婷婷久久伊| 国产亚洲自拍一区| 亚洲色图色小说| 日韩av高清在线观看| 国产麻豆一精品一av一免费 | 国产精品美女一区二区| 亚洲欧美在线视频观看| 亚洲影院理伦片| 久久99国产精品久久99| av亚洲精华国产精华精| 欧美性高清videossexo| 精品欧美乱码久久久久久1区2区| 欧美激情综合网| 亚洲一级在线观看| 国产酒店精品激情| 欧美亚洲日本一区| 久久这里只有精品6| 亚洲九九爱视频| 国产一区二区精品久久99| 97精品久久久久中文字幕| 51精品视频一区二区三区| 欧美激情一二三区| 日本视频免费一区| 成人v精品蜜桃久久一区| 欧美一区二区在线看| 亚洲视频在线一区观看| 国产乱人伦精品一区二区在线观看| 93久久精品日日躁夜夜躁欧美| 欧美α欧美αv大片| 一区二区视频在线| 国产激情偷乱视频一区二区三区| 欧美三级在线播放| 国产精品久久久久婷婷| 激情欧美日韩一区二区| 欧美性感一区二区三区| 亚洲视频1区2区| 成人影视亚洲图片在线| 日韩精品一区在线| 天天操天天干天天综合网| 成人激情免费网站| 2021国产精品久久精品| 免播放器亚洲一区| 欧美日韩中字一区| 亚洲精品成a人| 97久久人人超碰| 国产精品色一区二区三区| 极品少妇xxxx精品少妇| 欧美一区在线视频| 亚洲国产va精品久久久不卡综合| av在线综合网| 日韩毛片精品高清免费| www.亚洲精品| 中文字幕av在线一区二区三区| 国产一区免费电影| 欧美成人一区二区| 久久99久久精品欧美| 欧美一区二区大片| 日本欧美韩国一区三区| 56国语精品自产拍在线观看| 五月天亚洲精品| 欧美精品在欧美一区二区少妇| 午夜日韩在线观看| 欧美久久久久中文字幕| 日韩成人一区二区| 欧美xxxx老人做受| 国产一区二区三区美女| 久久精品一区四区| 成人性视频网站| 亚洲三级在线免费观看| 欧美调教femdomvk| 亚洲第一精品在线| 欧美一卡在线观看| 经典三级视频一区| 国产精品丝袜久久久久久app| 北条麻妃一区二区三区| 亚洲中国最大av网站| 91精品国产一区二区三区 | 欧美日韩精品免费观看视频| 午夜a成v人精品| www成人在线观看| 99综合影院在线| 日韩精品视频网站| 久久久久免费观看| 色综合久久中文字幕综合网| 日日欢夜夜爽一区| 国产欧美精品一区| 色狠狠色狠狠综合| 日本午夜精品视频在线观看| 国产蜜臀97一区二区三区| 欧美在线免费播放| 狠狠色综合播放一区二区| 自拍偷拍亚洲欧美日韩| 欧美一卡2卡三卡4卡5免费| 国内成人免费视频| 亚洲欧美另类综合偷拍| 日韩女优电影在线观看| 91女人视频在线观看| 美女久久久精品| 一区二区激情小说| 国产日韩欧美制服另类| 欧美日韩国产不卡| 成人网页在线观看| 日韩在线一区二区三区| 中文字幕一区日韩精品欧美| 日韩欧美亚洲国产另类| 91久久久免费一区二区| 国产99久久久国产精品潘金| 日韩电影在线观看网站| 一区二区三区美女视频| 欧美va亚洲va| 欧美伊人精品成人久久综合97| 国产精品一区二区免费不卡| 日韩精品成人一区二区在线| 亚洲精品成人悠悠色影视| 欧美激情一区在线| 精品999久久久| 91精品国产乱码| 欧美日韩在线亚洲一区蜜芽| 9人人澡人人爽人人精品| 国产一本一道久久香蕉| 美女视频免费一区| 日韩专区一卡二卡| 亚洲最新视频在线观看| 亚洲视频在线一区观看| 国产精品每日更新| 久久久91精品国产一区二区精品| 欧美一区二区三区四区久久| 欧美精品日韩一本| 欧日韩精品视频| 欧美在线|欧美| 色乱码一区二区三区88| 色综合久久久久网| 91猫先生在线| 91激情五月电影| 91色在线porny| 91福利精品第一导航| 色婷婷国产精品久久包臀 | 中文字幕日韩精品一区| 日本一区二区视频在线观看| 国产日韩欧美综合在线| 国产精品国产馆在线真实露脸 | 国产精品免费网站在线观看| 国产蜜臀97一区二区三区| 国产精品水嫩水嫩| 日韩理论电影院| 亚洲成人综合视频| 三级久久三级久久久| 另类的小说在线视频另类成人小视频在线| 午夜久久福利影院| 蜜臀av性久久久久蜜臀av麻豆| 免费在线成人网| 国产福利精品导航| 成人av在线资源网站| 色婷婷精品大在线视频| 在线不卡中文字幕播放| 精品日韩在线一区| 国产精品久久久久影院色老大| 亚洲日本在线看| 亚洲成人自拍网| 精品一区二区三区在线视频| 成人综合婷婷国产精品久久免费| 色综合久久久久久久久久久| 欧美日韩精品欧美日韩精品一 | 极品尤物av久久免费看| 99久久综合国产精品| 欧美一区二区三区四区在线观看 | 国产丝袜在线精品| 洋洋av久久久久久久一区| 成人综合在线网站| 欧美三级在线看| 亚洲国产精品99久久久久久久久| 亚洲高清三级视频|