DIRECTORY Rope, File, IO; RopeIO: CEDAR DEFINITIONS = BEGIN ToFile: PROC [fileName, rope: Rope.ROPE, start: INT _ 0]; ToFileC: PROC [capability: File.Capability, rope: Rope.ROPE, start: INT _ 0]; FromFile: PROC [fileName: Rope.ROPE, start: INT _ 0, len: INT _ LAST[INT]] RETURNS [Rope.ROPE]; FromFileC: PROC [capability: File.Capability, start: INT _ 0, len: INT _ LAST[INT]] RETURNS [Rope.ROPE]; PutRope: PROC [stream: IO.Handle, rope: Rope.ROPE]; GetRope: PROC [stream: IO.Handle, len: INT _ LAST[INT]] RETURNS [rope: Rope.ROPE]; END. VRopeIO.mesa written by Bill Paxton, August 1982 last edit by Paxton, September 13, 1982 9:42 am This module provides efficient filing operations for ropes. For reading, the files are mapped in and block copied to large buffers. For writing, the characters from the ropes are block copied into large buffers for output. Last Edited by: Maxwell, January 5, 1983 8:36 am write the rope on the specified file starts writing at given address in file truncates file to end of rope like ToFile but uses capability instead of file name create rope from the contents of a file starts reading at given start address in file pretends that start+len is the end of the file like FromFile but uses capability instead of file name **** IO Stream Operations **** does a series of IO.PutBlock's reads up to len chars from stream (via GetBlock's) and makes a rope Ę°˜šœ ™ Jšœ#™#Jšœ/™/—J™šœ;™;J™GJ™Z—JšĎk0™0Jš ˜ J˜J˜Jšœ˜J˜Jšœœ˜Jš˜J˜šĎnœœœ œ˜9JšĎc$™$JšŸ'™'JšŸ™J˜—šžœœ*œ œ˜MJšŸ4™4J˜—šžœœœ œ œœœ˜JJšœœ˜JšŸ'™'JšŸ-™-JšŸ.™.J˜—š ž œœ&œ œœœ˜SJšœœ˜JšŸ6™6J˜—JšŸ™J˜šžœœ œœ˜3JšŸ™J˜—š žœœ œœœœ˜7Jšœ œ˜JšŸC™CJ˜—Jšœ˜J˜J˜—…—&,