wxOutputStream
generated from ../src/mod_io/ostream.cppwxOutputStream is a prototype for output streams. You can't construct it directly. See wxMemoryOutputStream, wxFileOutputStream, wxFFileOutputStream.
Constants
Properties
| Name | Type | Description |
|---|---|---|
lastWrite ![]() |
Integer | Gets the last number of bytes written. |
tellO ![]() |
Integer | Returns the current position. |
Methods
close
close() : Boolean
Closes the stream
putC
putC(Char)
| Name | Type | Default | Description |
|---|---|---|---|
| Char | String |
The first character of the String is written to the output stream.
seekO
seekO(Offset,
Mode = wxSeekMode.FromStart) : Integer
| Name | Type | Default | Description |
|---|---|---|---|
| Offset | Integer | Offset to seek to | |
| Mode | wxSeekMode | wxSeekMode.FromStart |
Seeks the offset. Returns the actual position or -1 on error.
sync
sync()
Flushes the buffer.
write
write(Buffer,
Count) : Integer
| Name | Type | Default | Description |
|---|---|---|---|
| Buffer | wxMemoryBuffer | ||
| Count | Integer | The number of characters to write. Default is the length of buffer. |
write(Str) : Integer
| Name | Type | Default | Description |
|---|---|---|---|
| Str | String |
write(Input) : Integer
| Name | Type | Default | Description |
|---|---|---|---|
| Input | wxInputStream |
1. Writes the buffer to the outputstream. Unlike wxWindows, the size of the buffer must not
be specified. If ommitted then the full buffer is written.
2. Reads data from the specified input stream and stores them in the current stream.
The data is read until an error is raised by one of the two streams.
Unlike wxWidgets, this method returns the number of bytes written.

© 2002 - 2007 Franky Braem.