Squeak Class Documentation category index | class index  
 
StandardSourceFileArray
  category: System-Files
  superclass: SourceFileArray
  subclasses:

This class implements the source file management behavior of traditional Squeak, with a sources file and a changes file. File positions are mapped such that those files can be up to 32MBytes in size.

Structure:
files Array -- storing the actual source files

instance methods
  accessing
  at:
at:put:
size

  initialize-release
  initialize
initialize:

  sourcePointer conversion
  fileIndexFromSourcePointer:
filePositionFromSourcePointer:
sourcePointerFromFileIndex:andPosition:

class methods
  initialize-release
  install
new:

instance methods
  accessing top  
 

at:

Primitive. Assumes receiver is indexable. Answer the value of an
indexable element in the receiver. Fail if the argument index is not an
Integer or is out of bounds. Essential. See Object documentation
whatIsAPrimitive.


 

at:put:

Primitive. Assumes receiver is indexable. Store the argument value in
the indexable element of the receiver indicated by index. Fail if the
index is not an Integer or is out of bounds. Or fail if the value is not of
the right type for this kind of collection. Answer the value that was
stored. Essential. See Object documentation whatIsAPrimitive.


 

size

Answer how many elements the receiver contains.


  initialize-release top  
 

initialize


 

initialize:


  sourcePointer conversion top  
 

fileIndexFromSourcePointer:

Return the index of the source file which contains the source chunk addressed by anInteger


 

filePositionFromSourcePointer:

Return the position of the source chunk addressed by anInteger


 

sourcePointerFromFileIndex:andPosition:

Return a source pointer according to the new 32M algorithm


class methods
  initialize-release top  
 

install

Replace SourceFiles by an instance of me with the standard sources and changes files.
This only works if SourceFiles is either an Array or an instance of this class


 

new:

Answer an instance of this class with the number of indexable
variables specified by the argument, sizeRequested.