Method category index
Create a new FileSegment referring to the contents of the given file, from the startPos-th byte and for sizeInteger bytes. Note that FileSegments should always be created with full paths because relative paths are interpreted to be relative to the kernel directory.
Remove the kernel path from all paths that start with it. Needed to support $(DESTDIR) and relocatable installation.
Answer a String containing the required segment of the file
copyFrom: from to: to
Answer a String containing the given subsegment of the file. As for streams, from and to are 0-based.
Answer the File object for the file containing the segment
Answer the name of the file containing the segment
Answer the position in the file where the segment starts
relocateFrom: startPath map: map
If the path starts with startPath, remove that part of the path. map is a Dictionary that is used so that equal filenames stay equal, without increasing the amount of memory that the image uses.
Answer the length of the segment
Evaluate aBlock passing it the FileStream in which the segment identified by the receiver is stored
Answer whether the receiver and aFileSegment are equal.
Answer an hash value for the receiver.
Answer a printed representation of the file containing the segment. While introducing some ambiguity, this representation is compact eliminates the path for kernel files, and produces a relative path from the current working directory for other files.