joeq.ClassLib.Common.sun.misc
Class Unsafe
java.lang.Object
joeq.ClassLib.Common.sun.misc.Unsafe
public final class Unsafe
- extends Object
Unsafe
- Version:
- $Id: Unsafe.java,v 1.7 2004/08/07 07:30:50 joewhaley Exp $
- Author:
- John Whaley
Method Summary |
int |
addressSize()
|
Object |
allocateInstance(Class k)
|
long |
allocateMemory(long v)
|
int |
arrayBaseOffset(Class k)
|
int |
arrayIndexScale(Class k)
|
void |
copyMemory(long to,
long from,
long size)
|
Class |
defineClass(String name,
byte[] b,
int off,
int len,
ClassLoader cl)
|
Class |
defineClass(String name,
byte[] b,
int off,
int len,
ClassLoader cl,
ProtectionDomain pd)
|
void |
ensureClassInitialized(Class k)
|
int |
fieldOffset(Field field)
|
void |
freeMemory(long v)
|
long |
getAddress(long addr)
|
boolean |
getBoolean(Object o,
int x)
|
boolean |
getBoolean(Object o,
long x)
|
byte |
getByte(long addr)
|
byte |
getByte(Object o,
int x)
|
byte |
getByte(Object o,
long x)
|
char |
getChar(long addr)
|
char |
getChar(Object o,
int x)
|
char |
getChar(Object o,
long x)
|
double |
getDouble(long addr)
|
double |
getDouble(Object o,
int x)
|
double |
getDouble(Object o,
long x)
|
float |
getFloat(long addr)
|
float |
getFloat(Object o,
int x)
|
float |
getFloat(Object o,
long x)
|
int |
getInt(long addr)
|
int |
getInt(Object o,
int x)
|
int |
getInt(Object o,
long x)
|
long |
getLong(long addr)
|
long |
getLong(Object o,
int x)
|
long |
getLong(Object o,
long x)
|
Object |
getObject(Object o,
int x)
|
Object |
getObject(Object o,
long x)
|
short |
getShort(long addr)
|
short |
getShort(Object o,
int x)
|
short |
getShort(Object o,
long x)
|
void |
monitorEnter(Object o)
|
void |
monitorExit(Object o)
|
long |
objectFieldOffset(Field field)
|
int |
pageSize()
|
void |
putAddress(long addr,
long v)
|
void |
putBoolean(Object o,
int x,
boolean v)
|
void |
putBoolean(Object o1,
long x,
boolean v)
|
void |
putByte(long addr,
byte v)
|
void |
putByte(Object o,
int x,
byte v)
|
void |
putByte(Object o1,
long x,
byte v)
|
void |
putChar(long addr,
char v)
|
void |
putChar(Object o,
int x,
char v)
|
void |
putChar(Object o1,
long x,
char v)
|
void |
putDouble(long addr,
double v)
|
void |
putDouble(Object o,
int x,
double v)
|
void |
putDouble(Object o1,
long x,
double v)
|
void |
putFloat(long addr,
float v)
|
void |
putFloat(Object o,
int x,
float v)
|
void |
putFloat(Object o1,
long x,
float v)
|
void |
putInt(long addr,
int v)
|
void |
putInt(Object o,
int x,
int v)
|
void |
putInt(Object o1,
long x,
int v)
|
void |
putLong(long addr,
long v)
|
void |
putLong(Object o,
int x,
long v)
|
void |
putLong(Object o1,
long x,
long v)
|
void |
putObject(Object o1,
int x,
Object v)
|
void |
putObject(Object o1,
long x,
Object v)
|
void |
putShort(long addr,
short v)
|
void |
putShort(Object o,
int x,
short v)
|
void |
putShort(Object o1,
long x,
short v)
|
void |
setMemory(long to,
long size,
byte b)
|
Object |
staticFieldBase(Class k)
|
void |
throwException(Throwable o)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Unsafe
public Unsafe()
getObject
public Object getObject(Object o,
int x)
getObject
public Object getObject(Object o,
long x)
putObject
public void putObject(Object o1,
int x,
Object v)
putObject
public void putObject(Object o1,
long x,
Object v)
getBoolean
public boolean getBoolean(Object o,
int x)
getBoolean
public boolean getBoolean(Object o,
long x)
putBoolean
public void putBoolean(Object o,
int x,
boolean v)
putBoolean
public void putBoolean(Object o1,
long x,
boolean v)
getByte
public byte getByte(Object o,
int x)
getByte
public byte getByte(Object o,
long x)
putByte
public void putByte(Object o,
int x,
byte v)
putByte
public void putByte(Object o1,
long x,
byte v)
getShort
public short getShort(Object o,
int x)
getShort
public short getShort(Object o,
long x)
putShort
public void putShort(Object o,
int x,
short v)
putShort
public void putShort(Object o1,
long x,
short v)
getChar
public char getChar(Object o,
int x)
getChar
public char getChar(Object o,
long x)
putChar
public void putChar(Object o,
int x,
char v)
putChar
public void putChar(Object o1,
long x,
char v)
getInt
public int getInt(Object o,
int x)
getInt
public int getInt(Object o,
long x)
putInt
public void putInt(Object o,
int x,
int v)
putInt
public void putInt(Object o1,
long x,
int v)
getLong
public long getLong(Object o,
int x)
getLong
public long getLong(Object o,
long x)
putLong
public void putLong(Object o,
int x,
long v)
putLong
public void putLong(Object o1,
long x,
long v)
getFloat
public float getFloat(Object o,
int x)
getFloat
public float getFloat(Object o,
long x)
putFloat
public void putFloat(Object o,
int x,
float v)
putFloat
public void putFloat(Object o1,
long x,
float v)
getDouble
public double getDouble(Object o,
int x)
getDouble
public double getDouble(Object o,
long x)
putDouble
public void putDouble(Object o,
int x,
double v)
putDouble
public void putDouble(Object o1,
long x,
double v)
getByte
public byte getByte(long addr)
putByte
public void putByte(long addr,
byte v)
getShort
public short getShort(long addr)
putShort
public void putShort(long addr,
short v)
getChar
public char getChar(long addr)
putChar
public void putChar(long addr,
char v)
getInt
public int getInt(long addr)
putInt
public void putInt(long addr,
int v)
getLong
public long getLong(long addr)
putLong
public void putLong(long addr,
long v)
getFloat
public float getFloat(long addr)
putFloat
public void putFloat(long addr,
float v)
getDouble
public double getDouble(long addr)
putDouble
public void putDouble(long addr,
double v)
getAddress
public long getAddress(long addr)
putAddress
public void putAddress(long addr,
long v)
allocateMemory
public long allocateMemory(long v)
setMemory
public void setMemory(long to,
long size,
byte b)
copyMemory
public void copyMemory(long to,
long from,
long size)
freeMemory
public void freeMemory(long v)
objectFieldOffset
public long objectFieldOffset(Field field)
fieldOffset
public int fieldOffset(Field field)
staticFieldBase
public Object staticFieldBase(Class k)
ensureClassInitialized
public void ensureClassInitialized(Class k)
arrayBaseOffset
public int arrayBaseOffset(Class k)
arrayIndexScale
public int arrayIndexScale(Class k)
addressSize
public int addressSize()
pageSize
public int pageSize()
defineClass
public Class defineClass(String name,
byte[] b,
int off,
int len,
ClassLoader cl,
ProtectionDomain pd)
defineClass
public Class defineClass(String name,
byte[] b,
int off,
int len,
ClassLoader cl)
allocateInstance
public Object allocateInstance(Class k)
throws InstantiationException
- Throws:
InstantiationException
monitorEnter
public void monitorEnter(Object o)
monitorExit
public void monitorExit(Object o)
throwException
public void throwException(Throwable o)
Copyright © 2001-2005 John Whaley. All Rights Reserved.