![]() |
Section 8.10.3.9: |
![]() |
This class implements a model of a virtual binary file to and from which data may be read either within one program (with more than one thread, say) or between programs.
The following routines are required to be implemented for this class in accordance with the specifications given in the abstract class $FILES :-
This is the first of two features which are provided to send binary data to a file, extending the length of the file as needed.
This feature either inserts (if update is true) or appends the given item to the file channel to which self is a connection, returning self if successful, otherwise returning void.
This is the variant of plus which places the value of the single octet item at the current position in the file, extending the file size if needed.
This feature appends the given octet to the file channel to which self is a connection, returning self if successful, otherwise returning void.
This is the first of a pair of 'reading' operations provided on a pipe since, being virtual the concept of total contents does not exist. This version merely attempts to retrieve a single octet.
This routine retrieves a single octet from the pipe. If reading failed then error will be true and the result is undefined.
This retrieval operation only retrieves as much as the pipe contains or the given count, whichever is the lesser. This routine only returns a void if reading errors have occurred.
This routine retrieves a sequence of octets from the pipe which are returned as a binary string if successful. The length of the string retrieved will always be greater than zero and less than or equal to count. If not successful then error will be true and the result void!
![]() |
Language Index | ![]() |
Library Index | ![]() |
Input/Output Index |
Comments or enquiries should be made to
Keith
Hopper. Page last modified: Friday, 17 November 2000. |
![]() |