Home | Index classes | Index static functions | Index enumerations | Index structure types |
CLASS {Stream|_base_class} , ABSTRACT, BYTES, BITWISE, UNTESTED :
Base class for all {Stream} descendants ({File_stream}, {Memory_stream}, ...)
IMPORT : {String_functions} .
|
Closing the stream. Call this method if you do not plan do any operations with the stream. If the stream object is destroying in result of releasing all the hard references onto the oject, it is first closed anyway. |
|
Returns TRUE for a closed stream object. Reading / writing is not possible for a closed stream (such requests are just ignoring). |
|
Reading bytes to the buffer array Dest[] (which first is cleared). If reading was ok, TRUE is returned. Final size of the buffer can be less then the Count specified. The FALSE value is returned only in case when there were no bytes read. |
|
Reading bytes to the buffer fixed array Dest[], returning count of bytes read. This amount can be less then size of the buffer provided. |
| |
| |
| |
|
Writes bytes from the buffer fixed array Dest[], returns count bytes successfully written. |
|
Writes single byte B passed. |
| |
|
|
Copying the rest of another stream (passed as a parameter) writing to the THIS stream object. |
|
Copying a part of of another stream (passed as a parameter) writing it to the THIS stream object. Not more then Len bytes are copied. |
{String_functions}.{encoding} Encoding|_for_strings , READ
|
Setting an encoding for the stream object. |
|
Detects encoding of the stream which is a read stream using a BOM sequence at the start of data. It should be called only when the position is 0. |
|
Reading a string from the input stream of the length specified by the Len parameter (or shorter, if at the end of the stream). |
BOOL Disable_auto_detect
|
Reading a string from the input stream (until the end of line characters, but ending line characters like #NL, #CR or #LF are not included in the RESULT). |
| |
|
Writing a string to the stream. If it is necessary to write new line characters, add those at the end of the S parameter, or write these in a separate call. Or, use method Write_line. |
|
Writing a string to the stream adding #NL characters. |
|
Writing BOM bytes to the stream corresponding to the encoding set for then stream. |