home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C / Applications / Moscow ML 1.42 / lib / BinIO.sig < prev    next >
Encoding:
Text File  |  1997-08-18  |  772 b   |  30 lines  |  [TEXT/Moml]

  1. (* BinIO -- SML Basis Library *)
  2.  
  3. type elem   = Word8.word
  4. type vector = Word8Vector.vector
  5.  
  6. (* Binary input: *)
  7.  
  8. type instream 
  9.  
  10. val openIn       : string -> instream
  11. val closeIn      : instream -> unit
  12. val input        : instream -> vector
  13. val inputAll     : instream -> vector
  14. val inputNoBlock : instream -> vector option
  15. val input1       : instream -> elem option
  16. val inputN       : instream * int -> vector
  17. val endOfStream  : instream -> bool
  18. val lookahead    : instream -> elem option
  19.  
  20. (* Binary output: *)
  21.  
  22. type outstream
  23.  
  24. val openOut      : string -> outstream
  25. val openAppend   : string -> outstream
  26. val closeOut     : outstream -> unit
  27. val output       : outstream * vector -> unit
  28. val output1      : outstream * elem -> unit
  29. val flushOut     : outstream -> unit
  30.