2010 FRC Java API


Uses of Class
com.sun.squawk.Address

Packages that use Address
com.sun.cldc.jna The CLDC/JNA package contains classes that help import native data structures and functions from Java code without writing C code. 
com.sun.squawk Provides classes for low level interactions with the Squawk VM. 
com.sun.squawk.flash   
com.sun.squawk.peripheral   
com.sun.squawk.realtime Provides classes for native memory access based on the javax.realtime package. 
com.sun.squawk.rms   
 

Uses of Address in com.sun.cldc.jna
 

Fields in com.sun.cldc.jna declared as Address
protected  Address Function.funcAddr
           
 

Methods in com.sun.cldc.jna that return Address
 Address Pointer.address()
          Gets the virtual memory location at which the memory region is mapped.
static Address PrivatePointer.createArrayBuffer(Object array)
          Create a native buffer pointing to either the array data directly, or to a copy of the array data.
static Address PrivatePointer.createArrayBuffer(Object array, int offset, int number)
          Create a native buffer pointing to either the array data directly, or to a copy of the array data.
 

Methods in com.sun.cldc.jna with parameters of type Address
static String Pointer.NativeUnsafeGetString(Address cstr)
          Create a Java string from a C string pointer
 

Constructors in com.sun.cldc.jna with parameters of type Address
Pointer(Address base, int size)
          Create a pointer that refers to a memory range from [base..base+size).
Pointer(Address base, UWord size)
          Create a pointer that refers to a memory range from [base..base+size).
 

Uses of Address in com.sun.squawk
 

Fields in com.sun.squawk declared as Address
 Address ObjectMemorySerializer.ControlBlock.start
          The address to which the pointers in memory are relative before they are relocated to canonical addresses.
 

Methods in com.sun.squawk that return Address
 Address Address.add(int offset)
          Adds a 32 bit offset to this address and return the resulting address.
 Address Address.addOffset(Offset offset)
          Adds a 32 or 64 bit offset to this address and return the resulting address.
 Address Address.and(UWord word)
          Logically AND a word with this address.
 Address ObjectMemory.fromCanonical(Address canonicalAddress)
          Converts a canonical address that is within the range of this object memory into a physical address.
static Address Address.fromObject(Object object)
          Casts an object reference to an address.
static Address Address.fromPrimitive(int value)
          Casts a word expressed as the appropriate Java primitive type for the platform (i.e. int or long) into a value of type Address.
static Address Unsafe.getAddress(Address base, int offset)
          Gets a pointer from memory as an Address.
static Address VM.getBootstrapEnd()
          Gets the address at which the object memory containing the bootstrap suite ends.
static Address VM.getBootstrapStart()
          Gets the address at which the object memory containing the bootstrap suite starts.
 Address ObjectMemory.getCanonicalEnd()
          Gets the address one byte past the end of the canonical object memory.
 Address ObjectMemory.getCanonicalStart()
          Gets the canonical starting address of this object memory.
 Address ObjectMemory.getEnd()
          Gets the address one byte past the end of the object memory.
static Address VM.getRomStart()
          Gets the address of the start of the object memory in ROM.
 Address ObjectMemory.getStart()
          Gets the start address of the object memory.
static Address Address.max()
          Gets the largest possible machine address.
 Address Address.or(UWord word)
          Logically OR a word with this address.
protected  Address ObjectMemoryLoader.relocateMemory(ObjectMemory parent, byte[] buffer, BitSet oopMap)
          Relocates the memory.
 Address Address.roundDown(int alignment)
          Rounds this address down based on a given alignment.
 Address Address.roundDownToWord()
          Rounds this address down to a machine word boundary.
 Address Address.roundUp(int alignment)
          Rounds this address up based on a given alignment.
 Address Address.roundUpToWord()
          Rounds this address up to a machine word boundary.
 Address Address.sub(int offset)
          Subtracts a 32 bit offset to this address and return the resulting address.
 Address Address.subOffset(Offset offset)
          Subtracts a 32 or 64 bit offset to this address and return the resulting address.
 Address ObjectMemory.toCanonical(Address address)
          Converts a physical address that is within the range of this object memory into a canonical address.
static Address Address.zero()
          Gets the canonical Address representation of null.
 

Methods in com.sun.squawk with parameters of type Address
 boolean ObjectMemory.containsAddress(Address address)
          Determines if this object memory contains a given address.
 boolean ObjectMemory.containsCanonicalAddress(Address canonicalAddress)
          Determines if this object memory contains a given canonical address.
 Offset Address.diff(Address address2)
          Calculates the offset between this address an another address.
 boolean Address.eq(Address address2)
          Determines if this address is equal to a given address.
 ObjectMemory ObjectMemory.findAddress(Address address)
          Searches up a chain of object memories starting from this one for a given physical address.
 ObjectMemory ObjectMemory.findCanonicalAddress(Address canonicalAddress)
          Searches up a chain of object memories starting from this one for a given canonical address.
 Address ObjectMemory.fromCanonical(Address canonicalAddress)
          Converts a canonical address that is within the range of this object memory into a physical address.
static Address Unsafe.getAddress(Address base, int offset)
          Gets a pointer from memory as an Address.
static int Unsafe.getByte(Address base, int offset)
          Gets a signed 8 bit value from memory.
static void Unsafe.getBytes(Address src, int boffset, byte[] bytes, int low, int number)
          Copy from memory to byte array.
static int Unsafe.getChar(Address base, int offset)
          Gets an unsigned 16 bit value from memory.
static void VM.getData(Address src, int boffset, Object dst, int low, int number, int elementSize)
          Do actual copy from memory at address + boffset to array Copy from memory to byte array.
static int Unsafe.getInt(Address base, int offset)
          Gets a signed 32 bit value from memory.
static void Unsafe.getInts(Address src, int boffset, int[] ints, int low, int number)
          Copy from memory to int array.
static long Unsafe.getLong(Address base, int offset)
          Gets a 64 bit value from memory using a 64 bit word offset.
static long Unsafe.getLongAtWord(Address base, int offset)
          Gets a 64 bit value from memory using a 32 bit word offset.
static void Unsafe.getLongs(Address src, int boffset, long[] longs, int low, int number)
          Copy from memory to long array.
static int NativeUnsafe.getNativeTaskErrno(Address ntask)
           
static int NativeUnsafe.getNativeTaskEventID(Address ntask)
           
static int NativeUnsafe.getNativeTaskResult(Address ntask)
           
static int Unsafe.getShort(Address base, int offset)
          Gets a signed 16 bit value from memory.
static void Unsafe.getShorts(Address src, int boffset, short[] shorts, int low, int number)
          Copy from memory to short array.
static int Unsafe.getUByte(Address base, int offset)
          Gets an unsigned 8 bit value from memory.
static int Unsafe.getUnalignedInt(Address base, int boffset)
          Gets the int at the given byte offset in the memory, starting from base.
static long Unsafe.getUnalignedLong(Address base, int boffset)
          Gets the long at the given byte offset in the memory, starting from base.
static int Unsafe.getUnalignedShort(Address base, int boffset)
          Gets the short at the given byte offset in the memory, starting from base.
static UWord Unsafe.getUWord(Address base, int offset)
          Gets an unsigned 32 or 64 bit value from memory.
 boolean Address.hi(Address address2)
          Determines if this address is higher than a given address.
 boolean Address.hieq(Address address2)
          Determines if this address is higher than or equal to a given address.
static boolean GC.inRam(Address start, Address end)
          Determines if any part of the range is in RAM.
 boolean Address.lo(Address address2)
          Determines if this address is lower than a given address.
 boolean Address.loeq(Address address2)
          Determines if this address is lower than or equal to a given address.
 boolean Address.ne(Address address2)
          Determines if this address is not equal to a given address.
static void VM.printAddress(Address val)
          Prints an address to the VM stream.
static void ObjectMemory.relocate(String uri, Object sourceStartBuffer, Address sourceStart, BitSet oopMap, Address targetStart, Address targetCanonicalStart, int targetSize, boolean toCanonical, boolean requiresEndianSwap, boolean trace, boolean verifyClearOopMap)
          Relocates the pointers in a range of memory that point to some target range of memory.
static void ObjectMemory.relocateParents(String uri, Object startBuffer, Address start, BitSet oopMap, ObjectMemory parent, boolean toCanonical, boolean requiresEndianSwap, boolean trace)
          Relocate all the pointers in a range of memory that point to one or more parent object memories.
static void Unsafe.setAddress(Address base, int offset, Address value)
          Sets a pointer value in memory without updating the write barrier.
static void Unsafe.setByte(Address base, int offset, int value)
          Sets an 8 bit value in memory.
static void Unsafe.setBytes(Address dst, int boffset, byte[] bytes, int low, int number)
          Copy from byte array to memory.
static void Unsafe.setChar(Address base, int offset, int value)
          Sets an unsigned 16 bit value in memory.
static void VM.setData(Address dst, int boffset, Object src, int low, int number, int elementSize)
          Do actual copy from array to memory at address + boffset Copy number bytes from byte array bytes starting at position low.to the memory location specified by the address dst and byte offset boffset.
static void Unsafe.setInt(Address base, int offset, int value)
          Sets a 32 bit value in memory.
static void Unsafe.setInts(Address dst, int boffset, int[] ints, int low, int number)
          Copy from int array to memory.
static void Unsafe.setLong(Address base, int offset, long value)
          Sets a 64 bit value in memory.
static void Unsafe.setLongAtWord(Address base, int offset, long value)
          Sets a 64 bit value in memory at a 32 bit word offset.
static void Unsafe.setLongs(Address dst, int boffset, long[] longs, int low, int number)
          Copy from long array to memory.
static void Unsafe.setShort(Address base, int offset, int value)
          Sets a signed 16 bit value in memory.
static void Unsafe.setShorts(Address dst, int boffset, short[] shorts, int low, int number)
          Copy from short array to memory.
static void Unsafe.setUnalignedInt(Address base, int boffset, int value)
          Gets the int at the given byte offset in the memory, starting from base.
static void Unsafe.setUnalignedLong(Address base, int boffset, long value)
          Gets the long at the given byte offset in the memory, starting from base.
static void Unsafe.setUnalignedShort(Address base, int boffset, int value)
          Sets the short at the given byte offset in the memory, starting from base.
static void Unsafe.setUWord(Address base, int offset, UWord value)
          Sets a UWord value in memory.
 Address ObjectMemory.toCanonical(Address address)
          Converts a physical address that is within the range of this object memory into a canonical address.
static int NativeUnsafe.waitForBlockingFunction(Address ntask)
           
 

Constructors in com.sun.squawk with parameters of type Address
ObjectMemory(Address start, int size, String uri, Object root, int hash, ObjectMemory parent)
          Constructs a new object memory file.
 

Uses of Address in com.sun.squawk.flash
 

Fields in com.sun.squawk.flash declared as Address
protected  Address MemoryHeapBlock.address
           
protected  Address NorFlashSectorState.endAddress
           
protected  Address NorFlashSectorState.startAddress
           
 

Methods in com.sun.squawk.flash that return Address
 Address INorFlashMemoryHeap.allocateAndWriteBlock(byte[] bytes, int offset, int length, INorFlashMemoryHeapScanner scanner)
           
 Address NorFlashMemoryHeap.allocateAndWriteBlock(byte[] bytes, int offset, int length, INorFlashMemoryHeapScanner scanner)
           
 Address IMemoryHeapBlock.getAddress()
           
 Address MemoryHeapBlock.getAddress()
           
 Address INorFlashSectorState.getEndAddress()
           
 Address NorFlashSectorState.getEndAddress()
           
 Address INorFlashSectorState.getStartAddress()
           
 Address NorFlashSectorState.getStartAddress()
           
 Address INorFlashSectorState.getWriteHeadAddress()
           
 Address NorFlashSectorState.getWriteHeadAddress()
           
protected  Address NorFlashMemoryHeap.writeBlock(IMemoryHeapBlock block, INorFlashMemoryHeapScanner scanner, Address oldAddress)
           
 

Methods in com.sun.squawk.flash with parameters of type Address
 void INorFlashMemoryHeap.freeBlockAt(Address address)
           
 void NorFlashMemoryHeap.freeBlockAt(Address address)
           
 IMemoryHeapBlock INorFlashMemoryHeap.getBlockAt(Address address)
           
 IMemoryHeapBlock NorFlashMemoryHeap.getBlockAt(Address address)
           
 INorFlashSectorState NorFlashMemoryHeap.getSectorContaining(Address address)
           
 void NorFlashSectorState.init(Address startAddress, int size)
           
 void INorFlashMemoryHeapScanner.reScanBlock(Address oldAddress, Address newAddress, IMemoryHeapBlock block)
           
 void IMemoryHeapBlock.setAddress(Address address)
           
 void MemoryHeapBlock.setAddress(Address address)
           
protected  Address NorFlashMemoryHeap.writeBlock(IMemoryHeapBlock block, INorFlashMemoryHeapScanner scanner, Address oldAddress)
           
 

Uses of Address in com.sun.squawk.peripheral
 

Fields in com.sun.squawk.peripheral declared as Address
protected  Address SimulatedNorFlashSector.startAddress
           
 

Methods in com.sun.squawk.peripheral that return Address
 Address INorFlashSector.getStartAddress()
           
 Address SimulatedNorFlashSector.getStartAddress()
           
 

Methods in com.sun.squawk.peripheral with parameters of type Address
protected  void SimulatedNorFlashSector.init(Address startAddress, int size, int purpose)
           
 

Constructors in com.sun.squawk.peripheral with parameters of type Address
SimulatedNorFlashSector(Address startAddress, byte[] bytes, int purpose)
           
SimulatedNorFlashSector(Address startAddress, int size, int purpose, boolean useFile)
           
 

Uses of Address in com.sun.squawk.realtime
 

Fields in com.sun.squawk.realtime declared as Address
protected  Address RawMemoryAccess.vbase
          Virtual base address.
 

Methods in com.sun.squawk.realtime that return Address
protected  Address RawMemoryAccess.getAddress()
          Gets the virtual memory location at which the memory region is mapped.
 

Uses of Address in com.sun.squawk.rms
 

Fields in com.sun.squawk.rms declared as Address
protected  Address RmsEntry.address
           
protected  Address[] RecordStoreEntry.recordAddresses
           
 

Methods in com.sun.squawk.rms that return Address
protected  Address RecordStoreEntry.findRecordAddress(int recordId)
           
 Address IRmsEntry.getAddress()
           
 Address RmsEntry.getAddress()
           
 Address IRecordStoreManager.logEntry(IRmsEntry entry)
           
 Address RecordStoreManager.logEntry(IRmsEntry entry)
           
 

Methods in com.sun.squawk.rms with parameters of type Address
 IRmsEntry IRecordStoreManager.getEntryAt(Address address)
           
 IRmsEntry RecordStoreManager.getEntryAt(Address address)
           
 void IRecordStoreManager.invalidateEntryAt(Address address)
           
 void RecordStoreManager.invalidateEntryAt(Address address)
           
 void RecordStoreManager.reScanBlock(Address oldAddress, Address newAddress, IMemoryHeapBlock block)
           
 void IRmsEntry.setAddress(Address address)
           
 void RmsEntry.setAddress(Address address)
           
 


2010 FRC Java API


Copyright © 2006-2009 Sun Microsystems, Inc. All Rights Reserved.