org.maachang.jni.io
クラス Unsafe

java.lang.Object
  上位を拡張 org.maachang.jni.io.Unsafe

public final class Unsafe
extends java.lang.Object

sun.misc.Unsafeを呼び出し.

導入されたバージョン:
SeabassNativeIO-1.0.0
バージョン:
2010/06/04
作成者:
masahito suzuki

フィールドの概要
static boolean BIG_ENDIAN
           
static sun.misc.Unsafe unsafe
           
static boolean UNSAFE_MODE
           
 
コンストラクタの概要
Unsafe()
           
 
メソッドの概要
static sun.misc.Unsafe get()
          sun.misc.Unsafeオブジェクトを取得.
static long getDirectByteBufferNativeAddress(java.nio.ByteBuffer buf)
          DirectByteBufferのNativeアドレスを取得.
static char swap(char x)
          charSwap.
static int swap(int x)
          intSwap.
static long swap(long x)
          longSwap.
static short swap(short x)
          shortSwap.
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

UNSAFE_MODE

public static final boolean UNSAFE_MODE

unsafe

public static final sun.misc.Unsafe unsafe

BIG_ENDIAN

public static final boolean BIG_ENDIAN
コンストラクタの詳細

Unsafe

public Unsafe()
メソッドの詳細

get

public static sun.misc.Unsafe get()
sun.misc.Unsafeオブジェクトを取得.

戻り値:
sun.misc.Unsafe オブジェクトが返されます.

getDirectByteBufferNativeAddress

public static long getDirectByteBufferNativeAddress(java.nio.ByteBuffer buf)
                                             throws java.lang.Exception
DirectByteBufferのNativeアドレスを取得.

パラメータ:
buf - 対象のByteBufferオブジェクトを設定します.
戻り値:
long Nativeアドレスが返されます.
例外:
java.lang.Exception - 例外.

swap

public static short swap(short x)
shortSwap.


swap

public static char swap(char x)
charSwap.


swap

public static int swap(int x)
intSwap.


swap

public static long swap(long x)
longSwap.