|
||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||
java.lang.Objectorg.maachang.jni.io.AbstractFastNativeBuffer
public abstract class AbstractFastNativeBuffer
状態チェックを無視するNativeBuffer.
このバッファは、速度重視を考慮した、チェック処理なしで、 Nativeメモリにアクセスするオブジェクトです. 欠点として、ダイレクトにNativeメモリにアクセスするので、 このオブジェクトによって操作した結果によって、処理異常が 発生した場合、最悪JavaVMが異常停止してしまいます.
| コンストラクタの概要 | |
|---|---|
AbstractFastNativeBuffer()
|
|
| メソッドの概要 | |
|---|---|
long |
getAddress()
メモリ先頭アドレスを取得. |
int |
getBinary(int index,
byte[] value,
int offset,
int length)
binary情報を取得. |
boolean |
getBoolean(int index)
boolean取得. |
byte |
getByte(int index)
byte情報を取得. |
char |
getChar(int index)
char取得. |
double |
getDouble(int index)
double取得. |
float |
getFloat(int index)
float取得. |
int |
getInt(int index)
int取得. |
int |
getLength()
メモリサイズを取得. |
long |
getLong(int index)
long取得. |
short |
getShort(int index)
short取得. |
int |
indexOf(byte[] binary)
IndexOf. |
int |
indexOf(byte[] binary,
int index)
IndexOf. |
boolean |
isClear()
メモリクリアチェック. |
int |
lastIndexOf(byte[] binary)
lastIndexOf. |
int |
lastIndexOf(byte[] binary,
int index)
lastIndexOf. |
int |
putBinary(int index,
byte[] value,
int offset,
int length)
binary情報を設定. |
void |
putBoolean(int index,
boolean value)
boolean設定. |
void |
putByte(int index,
byte value)
byte情報を設定. |
void |
putChar(int index,
char value)
char設定. |
void |
putDouble(int index,
double value)
double設定. |
void |
putFloat(int index,
float value)
float設定. |
void |
putInt(int index,
int value)
int設定. |
void |
putLong(int index,
long value)
long設定. |
void |
putShort(int index,
short value)
short設定. |
| クラス java.lang.Object から継承されたメソッド |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| インタフェース org.maachang.jni.io.NativeBuffer から継承されたメソッド |
|---|
clear |
| コンストラクタの詳細 |
|---|
public AbstractFastNativeBuffer()
| メソッドの詳細 |
|---|
public long getAddress()
NativeBuffer 内の getAddresspublic int getLength()
NativeBuffer 内の getLengthpublic boolean isClear()
NativeBuffer 内の isClear
public void putByte(int index,
byte value)
NativeBuffer 内の putByteindex - 対象のインデックス位置を設定します.value - 設定対象の情報を設定します.public byte getByte(int index)
NativeBuffer 内の getByteindex - 対象のインデックス位置を設定します.
public int putBinary(int index,
byte[] value,
int offset,
int length)
NativeBuffer 内の putBinaryindex - 対象のインデックス位置を設定します.value - 設定対象の情報を設定します.offset - 対象のオフセット値を設定します.length - 対象のデータ長を設定します.
public int getBinary(int index,
byte[] value,
int offset,
int length)
NativeBuffer 内の getBinaryindex - 対象のインデックス位置を設定します.value - 取得対象の情報を設定します.offset - 対象のオフセット値を設定します.length - 対象のデータ長を設定します.
public void putBoolean(int index,
boolean value)
NativeBuffer 内の putBooleanindex - 対象のインデックス位置を設定します.value - 設定対象の情報を設定します.public boolean getBoolean(int index)
NativeBuffer 内の getBooleanindex - 対象のインデックス位置を設定します.
public void putChar(int index,
char value)
NativeBuffer 内の putCharindex - 対象のインデックス位置を設定します.value - 設定対象の情報を設定します.public char getChar(int index)
NativeBuffer 内の getCharindex - 対象のインデックス位置を設定します.
public void putShort(int index,
short value)
NativeBuffer 内の putShortindex - 対象のインデックス位置を設定します.value - 設定対象の情報を設定します.public short getShort(int index)
NativeBuffer 内の getShortindex - 対象のインデックス位置を設定します.
public void putInt(int index,
int value)
NativeBuffer 内の putIntindex - 対象のインデックス位置を設定します.value - 設定対象の情報を設定します.public int getInt(int index)
NativeBuffer 内の getIntindex - 対象のインデックス位置を設定します.
public void putLong(int index,
long value)
NativeBuffer 内の putLongindex - 対象のインデックス位置を設定します.value - 設定対象の情報を設定します.public long getLong(int index)
NativeBuffer 内の getLongindex - 対象のインデックス位置を設定します.
public void putFloat(int index,
float value)
NativeBuffer 内の putFloatindex - 対象のインデックス位置を設定します.value - 設定対象の情報を設定します.public float getFloat(int index)
NativeBuffer 内の getFloatindex - 対象のインデックス位置を設定します.
public void putDouble(int index,
double value)
NativeBuffer 内の putDoubleindex - 対象のインデックス位置を設定します.value - 設定対象の情報を設定します.public double getDouble(int index)
NativeBuffer 内の getDoubleindex - 対象のインデックス位置を設定します.
public int indexOf(byte[] binary)
NativeBuffer 内の indexOfbinary - 検索対象バイナリを設定します.
public int indexOf(byte[] binary,
int index)
NativeBuffer 内の indexOfbinary - 検索対象バイナリを設定します.index - 対象の開始位置を設定します.
public int lastIndexOf(byte[] binary)
NativeBuffer 内の lastIndexOfbinary - 操作対象のデータを設定します.
public int lastIndexOf(byte[] binary,
int index)
NativeBuffer 内の lastIndexOfbinary - 操作対象のデータを設定します.index - 対象の開始位置を設定します.
|
||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||