1 % -----------------------------------------------------------------------------
3 % -----------------------------------------------------------------------------
4 \section{\class{wxInputStream
}}\label{wxinputstream
}
6 \wxheading{Derived from
}
8 \helpref{wxStreamBase
}{wxstreambase
}
12 \helpref{wxStreamBuffer
}{wxstreambuffer
}
17 \membersection{wxInputStream::wxInputStream
}
19 \func{}{wxInputStream
}{\void}
21 Creates a dummy input stream.
23 \func{}{wxInputStream
}{\param{wxStreamBuffer *
}{sbuf
}}
25 Creates an input stream using the specified stream buffer
\it{sbuf
}. This
26 stream buffer can point to another stream.
28 \membersection{wxInputStream::
\destruct{wxInputStream
}}
30 \func{}{\destruct{wxInputStream
}}{\void}
37 \membersection{wxInputStream::Peek
}
39 \func{char
}{Peek
}{\void}
41 Returns the first character in the input queue without removing it.
43 \membersection{wxInputStream::GetC
}
45 \func{char
}{GetC
}{\void}
47 Returns the first character in the input queue and removes it.
49 \membersection{wxInputStream::Read
}
51 \func{wxInputStream\&
}{Read
}{\param{void *
}{buffer
},
\param{size_t
}{ size
}}
53 Reads the specified amount of bytes and stores the data in
\it{buffer
}.
55 \it{WARNING!
} The buffer absolutely needs to have at least the specified size.
57 This function returns a reference on the current object, so the user can test
58 any states of the stream right away.
60 \func{wxInputStream\&
}{Read
}{\param{wxOutputStream\&
}{ stream_out
}}
62 Reads data from the input queue and stores it in the specified output stream.
63 The data is read until an error is raised by one of the two streams.
68 \membersection{wxInputStream::SeekI
}
70 \func{off_t
}{SeekI
}{\param{off_t
}{ pos
},
\param{wxSeekMode
}{ mode = wxFromStart
}}
72 Changes the stream current position.
74 \membersection{wxInputStream::TellI
}
76 \constfunc{off_t
}{TellI
}{\void}
78 Returns the current stream position.
83 \membersection{wxInputStream::InputStreamBuffer
}
85 \func{wxStreamBuffer*
}{InputStreamBuffer
}{\void}
87 Returns the stream buffer associated with the input stream.
89 \membersection{wxInputStream::LastRead
}
91 \constfunc{size_t
}{LastRead
}{\void}
93 Returns the last number of bytes read.