1 % -----------------------------------------------------------------------------
3 % -----------------------------------------------------------------------------
4 \section{\class{wxInputStream
}}\label{wxinputstream
}
6 \wxheading{Derived from
}
8 \helpref{wxStreamBase
}{wxstreambase
}
10 \wxheading{Include files
}
17 \membersection{wxInputStream::wxInputStream
}
19 \func{}{wxInputStream
}{\void}
21 Creates a dummy input stream.
23 \membersection{wxInputStream::
\destruct{wxInputStream
}}
25 \func{}{\destruct{wxInputStream
}}{\void}
29 \membersection{wxInputStream::GetC
}
31 \func{char
}{GetC
}{\void}
33 Returns the first character in the input queue and removes it.
35 \membersection{wxInputStream::LastRead
}\label{wxinputstreamlastread
}
37 \constfunc{size
\_t}{LastRead
}{\void}
39 Returns the last number of bytes read.
41 \membersection{wxInputStream::Peek
}
43 \func{char
}{Peek
}{\void}
45 Returns the first character in the input queue without removing it.
47 \membersection{wxInputStream::Read
}
49 \func{wxInputStream\&
}{Read
}{\param{void *
}{buffer
},
\param{size
\_t}{ size
}}
51 Reads the specified amount of bytes and stores the data in
\it{buffer
}.
55 The buffer absolutely needs to have at least the specified size.
57 \wxheading{Return value
}
59 This function returns a reference on the current object, so the user can test
60 any states of the stream right away.
62 \func{wxInputStream\&
}{Read
}{\param{wxOutputStream\&
}{ stream
\_out}}
64 Reads data from the input queue and stores it in the specified output stream.
65 The data is read until an error is raised by one of the two streams.
67 \wxheading{Return value
}
69 This function returns a reference on the current object, so the user can test
70 any states of the stream right away.
72 \membersection{wxInputStream::SeekI
}
74 \func{off
\_t}{SeekI
}{\param{off
\_t}{ pos
},
\param{wxSeekMode
}{ mode = wxFromStart
}}
76 Changes the stream current position.
78 \membersection{wxInputStream::TellI
}
80 \constfunc{off
\_t}{TellI
}{\void}
82 Returns the current stream position.
84 \membersection{wxInputStream::Ungetch
}\label{wxinputstream_ungetch
}
86 \func{size
\_t}{Ungetch
}{\param{const char*
}{ buffer
},
\param{size
\_t}{ size
}}
88 This function is only useful in
\it{read
} mode. It is the manager of the "Write-Back"
89 buffer. This buffer acts like a temporary buffer where datas which has to be
90 read during the next read IO call are put. This is useful when you get a big
91 block of data which you didn't want to read: you can replace them at the top
92 of the input queue by this way.
94 \wxheading{Return value
}
96 Returns the amount of bytes saved in the Write-Back buffer.
98 \func{bool
}{Ungetch
}{\param{char
}{c
}}
100 This function acts like the previous one except that it takes only one
101 character: it is sometimes shorter to use than the generic function.