strmbfrd.tex
来自「wxWidgets 是一个跨平台的 GUI 框架。它给开发人员提供了统一的接口」· TEX 代码 · 共 82 行
TEX
82 行
% -----------------------------------------------------------------------------% wxBufferedInputStream% -----------------------------------------------------------------------------\section{\class{wxBufferedInputStream}}\label{wxbufferedinputstream}This stream acts as a cache. It caches the bytes read from the specifiedinput stream (See \helpref{wxFilterInputStream}{wxfilterinputstream}).It uses wxStreamBuffer and sets the default in-buffer size to 1024 bytes.This class may not be used without some other stream to read the datafrom (such as a file stream or a memory stream).\wxheading{Derived from}\helpref{wxFilterInputStream}{wxfilterinputstream}\wxheading{Include files}<wx/stream.h>\wxheading{See also}\helpref{wxStreamBuffer}{wxstreambuffer}, \helpref{wxInputStream}{wxinputstream},\helpref{wxBufferedOutputStream}{wxbufferedoutputstream}% -----------------------------------------------------------------------------% wxBufferedOutputStream% -----------------------------------------------------------------------------\section{\class{wxBufferedOutputStream}}\label{wxbufferedoutputstream}This stream acts as a cache. It caches the bytes to be written to the specifiedoutput stream (See \helpref{wxFilterOutputStream}{wxfilteroutputstream}). Thedata is only written when the cache is full, when the buffered stream isdestroyed or when calling SeekO().This class may not be used without some other stream to write the datato (such as a file stream or a memory stream).\wxheading{Derived from}\helpref{wxFilterOutputStream}{wxfilteroutputstream}\wxheading{Include files}<wx/stream.h>\wxheading{See also}\helpref{wxStreamBuffer}{wxstreambuffer}, \helpref{wxOutputStream}{wxoutputstream}% ----------% Members% ----------\latexignore{\rtfignore{\wxheading{Members}}}\membersection{wxBufferedOutputStream::wxBufferedOutputStream}\label{wxbufferedoutputstreamctor}\func{}{wxBufferedOutputStream}{\param{const wxOutputStream\&}{ parent}}Creates a buffered stream using a buffer of a default size of 1024 bytes for cashingthe stream {\it parent}.\membersection{wxBufferedOutputStream::\destruct{wxBufferedOutputStream}}\label{wxbufferedoutputstreamdtor}\func{}{\destruct{wxBufferedOutputStream}}{\void}Destructor. Calls Sync() and destroys the internal buffer.\membersection{wxBufferedOutputStream::SeekO}\label{wxbufferedoutputstreamseeko}\func{off\_t}{SeekO}{\param{off\_t}{ pos}, \param{wxSeekMode}{ mode}}Calls Sync() and changes the stream position.\membersection{wxBufferedOutputStream::Sync}\label{wxbufferedoutputstreamsync}\func{void}{Sync}{\void}Flushes the buffer and calls Sync() on the parent stream.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?