RopeFile.mesa
Russ Atkinson, April 19, 1983 9:42 am
DIRECTORY
Rope USING [ROPE];
RopeFile: CEDAR DEFINITIONS = BEGIN OPEN Rope;
Create: PROC [
name: ROPE, start: INT ← 0, len: INTLAST[INT],
bufSize: INT ← 512, buffers: NAT ← 4, useMap: BOOLTRUE, raw: BOOLTRUE]
RETURNS [rope: ROPE];
Create makes a new ROPE from the specified substring of the named file. It will read in the file contents as necessary, which means that THE CLIENT GUARANTEES THAT THE FILE WILL NOT CHANGE!!!! The file will remain open indefinitely.
SubstrCreate: PROC [name: ROPE, start: INT ← 0, len: INTLAST[INT]] RETURNS [rope: ROPE];
Equivalent to Create[name, start, len].
SimpleCreate: PROC [name: ROPE] RETURNS [rope: ROPE];
Equivalent to Create[name].
END.