Squeak Class Documentation category index | class index  
 
IntegerArray
  category: Collections-Arrayed
  superclass: ArrayedCollection
  subclasses: PointArray

IntegerArrays store 32bit signed Integer values.
Negative values are stored as 2's complement.

instance methods
  accessing
  at:
at:put:
atAllPut:
defaultElement

  converting
  asIntegerArray

  private
  primFill:

class methods
  plugin generation
  ccg:emitLoadFor:from:on:
ccg:prolog:expr:index:
ccgDeclareCForVar:

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.


 

atAllPut:

Put anObject at every one of the receiver's indices.


 

defaultElement

Return the default element of the receiver


  converting top  
 

asIntegerArray

Answer an IntegerArray whose elements are the elements of the receiver, in
the same order.


  private top  
 

primFill:

Fill the receiver, an indexable bytes or words object, with the given positive integer. The range of possible fill values is [0..255] for byte arrays and [0..(2^32 - 1)] for word arrays.


class methods
  plugin generation top  
 

ccg:emitLoadFor:from:on:


 

ccg:prolog:expr:index:


 

ccgDeclareCForVar: