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}
41 \membersection{wxInputStream::Peek
}
43 \func{char
}{Peek
}{\void}
45 Returns the first character in the input queue without removing it.
47 \membersection{wxInputStream::GetC
}
49 \func{char
}{GetC
}{\void}
51 Returns the first character in the input queue and removes it.
53 \membersection{wxInputStream::Read
}
55 \func{wxInputStream\&
}{Read
}{\param{void *
}{buffer
},
\param{size_t
}{ size
}}
57 Reads the specified amount of bytes and stores the data in
\it{buffer
}.
61 The buffer absolutely needs to have at least the specified size.
63 \wxheading{Return value
}
65 This function returns a reference on the current object, so the user can test
66 any states of the stream right away.
68 \func{wxInputStream\&
}{Read
}{\param{wxOutputStream\&
}{ stream_out
}}
70 Reads data from the input queue and stores it in the specified output stream.
71 The data is read until an error is raised by one of the two streams.
73 \wxheading{Return value
}
75 This function returns a reference on the current object, so the user can test
76 any states of the stream right away.
81 \membersection{wxInputStream::SeekI
}
83 \func{off_t
}{SeekI
}{\param{off_t
}{ pos
},
\param{wxSeekMode
}{ mode = wxFromStart
}}
85 Changes the stream current position.
87 \membersection{wxInputStream::TellI
}
89 \constfunc{off_t
}{TellI
}{\void}
91 Returns the current stream position.
96 \membersection{wxInputStream::InputStreamBuffer
}
98 \func{wxStreamBuffer*
}{InputStreamBuffer
}{\void}
100 Returns the stream buffer associated with the input stream.
102 \membersection{wxInputStream::LastRead
}
104 \constfunc{size_t
}{LastRead
}{\void}
106 Returns the last number of bytes read.