|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.maachang.jni.io.AbstractFastNativeBuffer
org.maachang.jni.io.FastMemoryByteBuffer
public class FastMemoryByteBuffer
高速DirectByteBufferをNativeBuffer操作オブジェクト.
このバッファは、速度重視を考慮した、チェック処理なしで、 Nativeメモリにアクセスするオブジェクトです. 欠点として、ダイレクトにNativeメモリにアクセスするので、 このオブジェクトによって操作した結果によって、処理異常が 発生した場合、最悪JavaVMが異常停止してしまいます.
コンストラクタの概要 | |
---|---|
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 |
コンストラクタの詳細 |
---|
public FastMemoryByteBuffer()
public FastMemoryByteBuffer(java.nio.ByteBuffer buf) throws java.lang.Exception
byteBuffer
- 対象のByteBufferを設定します.
java.lang.Exception
- 例外.public FastMemoryByteBuffer(java.nio.ByteBuffer buf, int offset, int length) throws java.lang.Exception
byteBuffer
- 対象のByteBufferを設定します.offset
- 対象のオフセット値を設定します.length
- 対象のデータ長を設定します.
java.lang.Exception
- 例外.メソッドの詳細 |
---|
public void create(java.nio.ByteBuffer buf) throws java.lang.Exception
byteBuffer
- 対象のByteBufferを設定します.
java.lang.Exception
- 例外.public void create(java.nio.ByteBuffer buf, int offset, int length) throws java.lang.Exception
byteBuffer
- 対象のByteBufferを設定します.offset
- 対象のオフセット値を設定します.length
- 対象のデータ長を設定します.
java.lang.Exception
- 例外.public void clear()
public java.nio.ByteBuffer getByteBuffer()
public int position()
public void position(int pos)
pos
- ByteBufferのポジションを設定します.public int limit()
public void limit(int lim)
lim
- ByteBufferのリミットを設定します.
|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |