1 % -----------------------------------------------------------------------------
3 % -----------------------------------------------------------------------------
4 \section{\class{wxInputStream
}}\label{wxinputstream
}
6 \wxheading{Derived from
}
8 \helpref{wxStreamBase
}{wxstreambase
}
10 \wxheading{Include files
}
16 \helpref{wxStreamBuffer
}{wxstreambuffer
}
21 \membersection{wxInputStream::wxInputStream
}
23 \func{}{wxInputStream
}{\void}
25 Creates a dummy input stream.
27 \func{}{wxInputStream
}{\param{wxStreamBuffer *
}{sbuf
}}
29 Creates an input stream using the specified stream buffer
\it{sbuf
}. This
30 stream buffer can point to another stream.
32 \membersection{wxInputStream::
\destruct{wxInputStream
}}
34 \func{}{\destruct{wxInputStream
}}{\void}
38 \membersection{wxInputStream::GetC
}
40 \func{char
}{GetC
}{\void}
42 Returns the first character in the input queue and removes it.
44 \membersection{wxInputStream::InputStreamBuffer
}
46 \func{wxStreamBuffer*
}{InputStreamBuffer
}{\void}
48 Returns the stream buffer associated with the input stream.
50 \membersection{wxInputStream::LastRead
}
52 \constfunc{size
\_t}{LastRead
}{\void}
54 Returns the last number of bytes read.
56 \membersection{wxInputStream::Peek
}
58 \func{char
}{Peek
}{\void}
60 Returns the first character in the input queue without removing it.
62 \membersection{wxInputStream::Read
}
64 \func{wxInputStream\&
}{Read
}{\param{void *
}{buffer
},
\param{size
\_t}{ size
}}
66 Reads the specified amount of bytes and stores the data in
\it{buffer
}.
70 The buffer absolutely needs to have at least the specified size.
72 \wxheading{Return value
}
74 This function returns a reference on the current object, so the user can test
75 any states of the stream right away.
77 \func{wxInputStream\&
}{Read
}{\param{wxOutputStream\&
}{ stream_out
}}
79 Reads data from the input queue and stores it in the specified output stream.
80 The data is read until an error is raised by one of the two streams.
82 \wxheading{Return value
}
84 This function returns a reference on the current object, so the user can test
85 any states of the stream right away.
87 \membersection{wxInputStream::SeekI
}
89 \func{off
\_t}{SeekI
}{\param{off
\_t}{ pos
},
\param{wxSeekMode
}{ mode = wxFromStart
}}
91 Changes the stream current position.
93 \membersection{wxInputStream::TellI
}
95 \constfunc{off
\_t}{TellI
}{\void}
97 Returns the current stream position.