Back: FileDescriptor-testing
Up: Class reference
Forward: FileSegment class-basic
 
Top: GNU Smalltalk User's Guide
Contents: Table of Contents
Index: Class index
About: About this document

6.68 FileSegment

Defined in namespace Smalltalk
Category: Language-Implementation
My instances represent sections of files. I am primarily used by the compiler to record source code locations. I am not a part of the normal Smalltalk-80 kernel; I am specific to the GNU Smalltalk implementation.

6.68.1 FileSegment class: basic  (class)
6.68.2 FileSegment class: installing  (class)
6.68.3 FileSegment: basic  (instance)
6.68.4 FileSegment: equality  (instance)


6.68.1 FileSegment class: basic

on: aFile startingAt: startPos for: sizeInteger
Create a new FileSegment referring to the contents of the given file, from the startPos-th byte and for sizeInteger bytes


6.68.2 FileSegment class: installing

relocateFrom: startPath to: endPath
Remove startPath from all paths that start with it, and replace it with endPath. Needed to support $(DESTDIR) when installing


6.68.3 FileSegment: basic

asString
Answer a String containing the required segment of the file

fileName
Answer the name of the file containing the segment

filePos
Answer the position in the file where the segment starts

relocateFrom: startPath to: endPath
Not commented.

size
Answer the length of the segment

withFileDo: aBlock
Evaluate aBlock passing it the FileStream in which the segment identified by the receiver is stored


6.68.4 FileSegment: equality

= aFileSegment
Answer whether the receiver and aFileSegment are equal.

hash
Answer an hash value for the receiver.




This document was generated on May, 12 2002 using texi2html