Public Methods | |
long | Output_seekp (struct Output *ptr_output, long pos, seek_t mode) |
long | Output_tellp (struct Output *ptr_output) |
long | Output_write (struct Output *ptr_output, void *buffer, long length) |
int | Output_write_byte (struct Output *ptr_output, int byte) |
int | Output_get_flags (struct Output *ptr_output) |
bool | Output_is_eof (struct Output *ptr_output) |
bool | Output_is_bad (struct Output *ptr_output) |
bool | Output_is_good (struct Output *ptr_output) |
long | Output_get_size (struct Output *ptr_output) |
void | Output_dtor (struct Output *ptr_output, int) |
short | Output_write_word (struct Output *ptr_output, short word) |
long | Output_write_dword (struct Output *ptr_output, long dword) |
The CyOS's stream modes have two basic streams that are abstractions for the sequential data access objects: Input and Output. Those streams can pump data to and from virtually any source, including disk file, network connection, console terminals and more. Those basic streams are used, in turn, with filter streams, that apply specific features to some abstract streams' filters.
Typical stream implementations include the file streams FileInput and FileOutput, console streams and various filters. Filter streams process the data from other streams. They take the other stream's objects while constructing, and are just like regular streams themselves. Typical filters are UNICODE/ASCII conversion, text formatting streams Reader and Writer and compressing streams Compressor and Decompressor.
Filters are intended to combine the desired stream implementation with the selected filter object, to combine the features that best suit your needs. This object is just an interface for an input stream.
|
Destructor.
|
|
Returns the current flags.
|
|
Returns the stream size (if applicable).
|
|
Returns TRUE if the BAD flag is set (stream is bad).
|
|
Returns TRUE if the EOF flag is set (stream reached end-of-file).
|
|
Returns TRUE if the BAD flag is not set (stream is good).
|
|
Seeks an output stream.
|
|
Returns the stream's position.
|
|
Writes the 'length' bytes to the stream.
|
|
Writes a byte to the stream.
|
|
Writes a 32-bit word, independent of hardware.
|
|
Writes a 16-bit word, independent of hardware.
|
Copyright © 2001 Cybiko, Inc. All rights reserved. | More information... |