org.maachang.jni.io
クラス FastMemoryByteBuffer

java.lang.Object
  上位を拡張 org.maachang.jni.io.AbstractFastNativeBuffer
      上位を拡張 org.maachang.jni.io.FastMemoryByteBuffer
すべての実装されたインタフェース:
NativeBuffer

public class FastMemoryByteBuffer
extends AbstractFastNativeBuffer

高速DirectByteBufferをNativeBuffer操作オブジェクト.

このバッファは、速度重視を考慮した、チェック処理なしで、 Nativeメモリにアクセスするオブジェクトです. 欠点として、ダイレクトにNativeメモリにアクセスするので、 このオブジェクトによって操作した結果によって、処理異常が 発生した場合、最悪JavaVMが異常停止してしまいます.

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

コンストラクタの概要
FastMemoryByteBuffer()
          コンストラクタ.
FastMemoryByteBuffer(java.nio.ByteBuffer buf)
          コンストラクタ.
FastMemoryByteBuffer(java.nio.ByteBuffer buf, int offset, int length)
          コンストラクタ.
 
メソッドの概要
 void clear()
          メモリクリア.
 void create(java.nio.ByteBuffer buf)
          情報生成.
 void create(java.nio.ByteBuffer buf, int offset, int length)
          情報生成.
 java.nio.ByteBuffer getByteBuffer()
          ByteBufferを取得.
 int limit()
          limitを取得.
 void limit(int lim)
          limitを設定.
 int position()
          positionを取得.
 void position(int pos)
          positionを設定.
 
クラス org.maachang.jni.io.AbstractFastNativeBuffer から継承されたメソッド
getAddress, getBinary, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLength, getLong, getShort, indexOf, indexOf, isClear, lastIndexOf, lastIndexOf, putBinary, putBoolean, putByte, putChar, putDouble, putFloat, putInt, putLong, putShort
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

FastMemoryByteBuffer

public FastMemoryByteBuffer()
コンストラクタ.


FastMemoryByteBuffer

public FastMemoryByteBuffer(java.nio.ByteBuffer buf)
                     throws java.lang.Exception
コンストラクタ.

パラメータ:
byteBuffer - 対象のByteBufferを設定します.
例外:
java.lang.Exception - 例外.

FastMemoryByteBuffer

public FastMemoryByteBuffer(java.nio.ByteBuffer buf,
                            int offset,
                            int length)
                     throws java.lang.Exception
コンストラクタ.

パラメータ:
byteBuffer - 対象のByteBufferを設定します.
offset - 対象のオフセット値を設定します.
length - 対象のデータ長を設定します.
例外:
java.lang.Exception - 例外.
メソッドの詳細

create

public void create(java.nio.ByteBuffer buf)
            throws java.lang.Exception
情報生成.

パラメータ:
byteBuffer - 対象のByteBufferを設定します.
例外:
java.lang.Exception - 例外.

create

public void create(java.nio.ByteBuffer buf,
                   int offset,
                   int length)
            throws java.lang.Exception
情報生成.

パラメータ:
byteBuffer - 対象のByteBufferを設定します.
offset - 対象のオフセット値を設定します.
length - 対象のデータ長を設定します.
例外:
java.lang.Exception - 例外.

clear

public void clear()
メモリクリア.


getByteBuffer

public java.nio.ByteBuffer getByteBuffer()
ByteBufferを取得.

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

position

public int position()
positionを取得.

戻り値:
int ByteBufferのポジションが返されます.

position

public void position(int pos)
positionを設定.

パラメータ:
pos - ByteBufferのポジションを設定します.

limit

public int limit()
limitを取得.

戻り値:
int ByteBufferのリミットが返されます.

limit

public void limit(int lim)
limitを設定.

パラメータ:
lim - ByteBufferのリミットを設定します.