back to io 

wxOutputStream

generated from ../src/mod_io/ostream.cpp

wxOutputStream is a prototype for output streams. You can't construct it directly. See wxMemoryOutputStream, wxFileOutputStream, wxFFileOutputStream.

Constants

Properties

Name Type Description
lastWrite read only Integer Gets the last number of bytes written.
tellO read only 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.



SourceForge.net Logo Support This Project

Table of Contents

Properties

lastWrite
tellO

Methods

close
putC
seekO
sync
write


Design downloaded from Zeroweb.org: Free website templates, layouts, and tools.