RAWIO.DEF 744 B

1234567891011121314151617181920212223
  1. DEFINITION MODULE RawIO;
  2. (* Reading and writing data over specified channels using raw operations,
  3. that is, with no conversion or interpretation. The read result is of the
  4. type IOConsts.ReadResults.
  5. *)
  6. FROM IOLink IMPORT ChanId;
  7. FROM SYSTEM IMPORT LOC;
  8. PROCEDURE Read ( cid : ChanId;
  9. VAR to : ARRAY OF LOC);
  10. (* Reads storage units and assigns to successive components of the
  11. parameter to.
  12. The read result is set to the value allRight, wrongFormat, or
  13. endOfInput *)
  14. PROCEDURE Write (cid : ChanId;
  15. from : ARRAY OF LOC);
  16. (* Writes storage units from successive components of the
  17. parameter from *)
  18. END RawIO.