org.abora.gold.collection.basic
Class UInt8Array

java.lang.Object
  |
  +--org.abora.gold.java.AboraHeaper
        |
        +--org.abora.gold.xpp.basic.Heaper
              |
              +--org.abora.gold.collection.basic.PrimArray
                    |
                    +--org.abora.gold.collection.basic.PrimDataArray
                          |
                          +--org.abora.gold.collection.basic.PrimIntegerArray
                                |
                                +--org.abora.gold.collection.basic.PrimIntArray
                                      |
                                      +--org.abora.gold.collection.basic.UInt8Array

public class UInt8Array
extends PrimIntArray


Field Summary
 
Fields inherited from class org.abora.gold.collection.basic.PrimArray
OurGutsCount
 
Fields inherited from class org.abora.gold.xpp.basic.Heaper
AllBlasts, BecomeMap, GarbageCount, InGC, InitializedClasses, InitializingClasses, LastMemory, NextClientRequestNumber, NotOneElementSignal, PackageTable, PromiseNameTable, StringHashSBoxes
 
Fields inherited from class org.abora.gold.java.AboraHeaper
ActiveClubs, CurrentAuthor, CurrentBertCanopyCache, CurrentBertCrum, CurrentChunk, CurrentGrandMap, CurrentKeyMaster, CurrentPacker, CurrentSensorCanopyCache, CurrentServer, CurrentSession, CurrentSessions, CurrentTrace, InitialEditClub, InitialOwner, InitialReadClub, InitialSponsor, InsideTransactionFlag
 
Constructor Summary
protected UInt8Array(int count, int[] buffer)
           
protected UInt8Array(int size, PrimArray from, int sourceOffset, int count, int destOffset)
           
 
Method Summary
protected  void addData(int myStart, PrimDataArray other, int otherStart, int count)
          Add the respective elements of other to this over the given index range.
 int bitCount()
           
protected  int compareData(int myStart, PrimDataArray other, int otherStart, int count)
          over given range, returns - if this < other; 0 if this == other; + if this > other.
protected  void copyElements(int to, PrimArray source, int from, int count)
          subclasses with non-32 bit or other interesting values should override
 void copyToBuffer(int[] buffer, int size, int count, int start)
          Copy of a piece of this array into the provided buffer with size bytes of space available.
 Heaper fetchValue(int index)
          Fetch a value; may be a Heaper, NULL, or a PrimValue as appropriate to PrimArray subclass.
 java.lang.String gutsOf()
          A pointer to the actual string.
 IntegerVar integerAt(int index)
          Get an actual integer value
static UInt8Array make(int count)
          create a UInt8Array filled with zeros
static UInt8Array make(int count, int[] buffer)
          create a UInt8Array filled with the data at 'buffer'
static UInt8Array make(int size, PrimArray from)
           
static UInt8Array make(int size, PrimArray from, int sourceOffset)
           
static UInt8Array make(int size, PrimArray from, int sourceOffset, int count)
           
static UInt8Array make(int size, PrimArray from, int sourceOffset, int count, int destOffset)
          create a UInt8Array filled with the indicated data in 'from'
protected  PrimArray makeNew(int size, PrimArray source, int sourceOffset, int count, int destOffset)
           
 void noMoreGuts()
           
protected  void printElementOn(int index, Stream oo)
           
 void printOn(Stream oo)
           
protected  int signOfNonZeroAfter(int start)
          return the sign of the next non-zero element after start, or 0 if no such element.
 PrimSpec spec()
          A description of the kinds of things which can be stored in this array
 void storeInteger(int index, IntegerVar value)
          Store an integer value
 void storeMany(int to, PrimArray other, int count, int from)
          Copy n elements from the other array into this one.
 void storeUInt(int index, int value)
          Store a 32 bit unsigned integer value
 void storeValue(int index, Heaper value)
          Store a value; may be a Heaper, NULL, or a PrimValue as appropriate to PrimArray subclass.
static UInt8Array string(java.lang.String string)
          create a UInt8Array of size strlen(string) filled with the contents of the string (keep the '\0' ?)
protected  void subtractData(int myStart, PrimDataArray other, int otherStart, int count)
          Subtract the respective elements of other from this over the given index range.
 int uIntAt(int index)
          Get a 32 bit unsigned actual integer value
 void zeroElements(int from, int count)
           
 
Methods inherited from class org.abora.gold.collection.basic.PrimIntArray
zeros
 
Methods inherited from class org.abora.gold.collection.basic.PrimIntegerArray
elementsHash, hold, hold, indexOf, indexOfInteger, indexOfInteger, indexOfInteger, indexPast, indexPastInteger, indexPastInteger, indexPastInteger, storeAll
 
Methods inherited from class org.abora.gold.collection.basic.PrimDataArray
addElements, addElements, addElements, compare, compare, compare, compare, contentsEqual, elementsEqual, subtractElements, subtractElements, subtractElements
 
Methods inherited from class org.abora.gold.collection.basic.PrimArray
cleanup, contentsHash, copy, copy, copy, copy, copy, copyGrow, copyToBuffer, copyToBuffer, count, elementsEqual, elementsEqual, elementsHash, elementsHash, getValue, indexOf, indexOf, indexOfElements, indexOfElements, indexOfElements, indexOfElements, indexOfElements, indexPast, indexPast, moveTo, outOfBounds, printElementOn, printOn, rangeCheck, size, storage, storeAll, storeAll, storeAll, storeMany, storeMany, zeroElements, zeroElements
 
Methods inherited from class org.abora.gold.xpp.basic.Heaper
abstractDeclarationFor, abstractTypeFor, actualHashForEqual, addMethodAttributeToInOf, addPackage, addPackageCategory, allClientProtocolOn, argumentTypesFor, arrow, blast, blast, BLAST, cachePromiseNameTable, cachePromiseNameTableIn, canYouBecome, cast, cleanPromiseClasses, cleanupGarbage, clientClassesDo, clientFunctionsOn, clientMethodsOn, clientProtocol, clientProtocolDo, clientProtocolOn, clientProtocolOn, collectibleClasses, compare, compileClientSubclasses, compileConstantPromiseMethods, compileCreateFromRcvr, compileEQ, compileGeneratedClassMethod, compileGeneratedMethod, compileHook, compilePromise, compilePromiseDefaultMethods, compilePromiseFluidDeclarations, compilePromiseHandlers, compilePromiseMethods, compileRequestCreateMsgInArguments, compileRequestEvaluateMsgInReturningArguments, compileRPCSpecialistEvaluateMsgForReturningArguments, compileSendSelfTo, compileSendSelfToSendHook, compileStubbleMethods, compileSubclassStubbleMethods, computeMangle, computePreorder, constantTypeValue, convert, convertCopyDeclarations, convertDeferredDeclarations, convertProxyDeclarations, convertSubclassCopyDeclarations, convertSubclassDeferredDeclarations, convertSubclassProxyDeclarations, copyReferencesToType, create, create, create, create, create, create, create, create, create, create, createRequestClassArguments, definesProxyMethods, delete, deref, destroy, destruct, destructor, enum, enumFlags, equals, exportName, fetchAttribute, fetchPackage, fetchSuperCategory, fileOutClientProtocol, findCategory, findSenderAndReceiverMethods, findTailInto, flushPromiseNameTable, foo, freezeClientClasses, freezeClientProtocol, freezeStProtocol, frozenClasses, garbageCollect, garbageCollectFrom, gcOpportunity, gcOpportunity, generatedCategory, generatePromiseNames, getCategory, getOrMakePackage, getSuperCategory, handlerSignaturesFrom, hash, hashForEqual, hasProxyMethods, info_clientClasses, info_clientSideClasses, info_promiseClasses, info_stProtocol, inGC, initializedClasses, initializingClasses, initPackages, initStringHashSBoxes, inspectPieces, instanceSize, IntegerVar, isByProxy, isConstructed, isDestructed, isEqual, isEqualOrSubclassOf, isGenerated, isIntType, isKindOf, isRawType, isUnlocked, linkTimeNonInherited, make, makeClassTable, makeFillTable, makeRequestTable, mangle, markChildren, markCount, markInstances, mayBecome, mayBecomeAnySubclassOf, new1, newX, nonCopyVariables, notWorking, pack, packageClasses, packagingCategory, parseExportName, passe, pointerToStaticMember, pointerToStaticMember, pointerToVirtualMember, preorderMax, preorderNumber, PROBLEM, problems, promiseClass, promiseDefaultValue, promiseName, promiseNameTable, promiseToAbstract, registerPackageCategory, removeGeneratedCode, removeStubbleMethods, removeSubclassGeneratedCode, removeSubclassStubbleMethods, requestProcedure, requestProceduresFrom, returnTypeFor, rootName, scheduleTermination, sendProxyTo, sendSelfTo, serverNameFor, setGC, signal, signals, smalltalkSelector, stClientProtocol, stubbleSelectorTokenReturnsArguments, subclassNonCopyVariables, takeOop, togglePromiseName, togglePromiseOfParse, unimplemented, unmangle, verifyFreeze, wipeStubble
 
Methods inherited from class org.abora.gold.java.AboraHeaper
asOop, basicInspect, displayString, error, hack, halt, inspect, knownBug, mightNotImplement, REQUIRES, shouldImplement, shouldNotImplement, stubbleForSubclassResponsibility, thingToDo, willNotImplement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UInt8Array

protected UInt8Array(int size,
                     PrimArray from,
                     int sourceOffset,
                     int count,
                     int destOffset)

UInt8Array

protected UInt8Array(int count,
                     int[] buffer)
Method Detail

make

public static UInt8Array make(int count)
create a UInt8Array filled with zeros


make

public static UInt8Array make(int size,
                              PrimArray from,
                              int sourceOffset,
                              int count,
                              int destOffset)
create a UInt8Array filled with the indicated data in 'from'


make

public static UInt8Array make(int size,
                              PrimArray from,
                              int sourceOffset,
                              int count)

make

public static UInt8Array make(int size,
                              PrimArray from,
                              int sourceOffset)

make

public static UInt8Array make(int size,
                              PrimArray from)

make

public static UInt8Array make(int count,
                              int[] buffer)
create a UInt8Array filled with the data at 'buffer'


string

public static UInt8Array string(java.lang.String string)
create a UInt8Array of size strlen(string) filled with the contents of the string (keep the '\0' ?)


storeUInt

public void storeUInt(int index,
                      int value)
Store a 32 bit unsigned integer value


uIntAt

public int uIntAt(int index)
Get a 32 bit unsigned actual integer value


storeInteger

public void storeInteger(int index,
                         IntegerVar value)
Description copied from class: PrimIntArray
Store an integer value

Overrides:
storeInteger in class PrimIntArray

integerAt

public IntegerVar integerAt(int index)
Description copied from class: PrimIntArray
Get an actual integer value

Overrides:
integerAt in class PrimIntArray

storeValue

public void storeValue(int index,
                       Heaper value)
Description copied from class: PrimArray
Store a value; may be a Heaper, NULL, or a PrimValue as appropriate to PrimArray subclass. It is expected that most PrimArray clients will want to use less abstract access methods

Overrides:
storeValue in class PrimIntArray

fetchValue

public Heaper fetchValue(int index)
Description copied from class: PrimArray
Fetch a value; may be a Heaper, NULL, or a PrimValue as appropriate to PrimArray subclass. It is expected that most PrimArray clients will want to use less abstract access methods.

Overrides:
fetchValue in class PrimIntArray

spec

public PrimSpec spec()
Description copied from class: PrimArray
A description of the kinds of things which can be stored in this array

Overrides:
spec in class PrimIntArray

bitCount

public int bitCount()
Overrides:
bitCount in class PrimIntArray

storeMany

public void storeMany(int to,
                      PrimArray other,
                      int count,
                      int from)
Description copied from class: PrimArray
Copy n elements from the other array into this one. The other array must be of a compatible type.

Overrides:
storeMany in class PrimArray

copyToBuffer

public void copyToBuffer(int[] buffer,
                         int size,
                         int count,
                         int start)
Description copied from class: PrimArray
Copy of a piece of this array into the provided buffer with size bytes of space available. The default is to start at the beginning and go to the end. The elements will be copied from this array beginning with start, and taking as many of count elements or upto the end of this array as will fit in size bytes. WARNING: Note that if this array is a PtrArray, the pointers copied to buffer will not be considered as references for garbage collection. Therefore the buffer should not be allowed to contain the only pointer to an object in a garbage collecting environment.

Overrides:
copyToBuffer in class PrimIntArray

zeroElements

public void zeroElements(int from,
                         int count)
Overrides:
zeroElements in class PrimArray

printOn

public void printOn(Stream oo)

gutsOf

public java.lang.String gutsOf()
A pointer to the actual string. While one of these are outstanding, one may not allocate any PrimArrays, because doing so may cause compaction, which would relocate the data. In order to keep track of whether there are outstanding hard pointers, my clients must call noMoreGuts() when they will no longer be using the pointer.


noMoreGuts

public void noMoreGuts()

compareData

protected int compareData(int myStart,
                          PrimDataArray other,
                          int otherStart,
                          int count)
Description copied from class: PrimDataArray
over given range, returns - if this < other; 0 if this == other; + if this > other.

Overrides:
compareData in class PrimIntegerArray

signOfNonZeroAfter

protected int signOfNonZeroAfter(int start)
Description copied from class: PrimDataArray
return the sign of the next non-zero element after start, or 0 if no such element. Note that for the unsigned arrays, this will only return 0 or 1.

Overrides:
signOfNonZeroAfter in class PrimIntArray

addData

protected void addData(int myStart,
                       PrimDataArray other,
                       int otherStart,
                       int count)
Description copied from class: PrimDataArray
Add the respective elements of other to this over the given index range.

Overrides:
addData in class PrimIntegerArray

subtractData

protected void subtractData(int myStart,
                            PrimDataArray other,
                            int otherStart,
                            int count)
Description copied from class: PrimDataArray
Subtract the respective elements of other from this over the given index range.

Overrides:
subtractData in class PrimIntegerArray

printElementOn

protected void printElementOn(int index,
                              Stream oo)
Overrides:
printElementOn in class PrimIntArray

copyElements

protected void copyElements(int to,
                            PrimArray source,
                            int from,
                            int count)
Description copied from class: PrimArray
subclasses with non-32 bit or other interesting values should override

Overrides:
copyElements in class PrimArray

makeNew

protected PrimArray makeNew(int size,
                            PrimArray source,
                            int sourceOffset,
                            int count,
                            int destOffset)
Overrides:
makeNew in class PrimIntArray


Translation - Copyright © 2003 David G Jones. All Rights Reserved.
Original Udanax-Gold - Copyright © 1979-1999 Udanax.com. All rights reserved.