クラス
java.nio.ShortBufferの使用
| パッケージ | 説明 |
|---|---|
| java.nio |
データのコンテナであるバッファについて定義し、その他のNIOパッケージの概要情報を提供します。
|
-
java.nioでのShortBufferの使用
ShortBufferを返すjava.nioのメソッド 修飾子と型 メソッド 説明 static ShortBufferShortBuffer. allocate(int capacity)新しいshortバッファを割り当てます。abstract ShortBufferShortBuffer. asReadOnlyBuffer()このバッファの内容を共有する新しい読込み専用shortバッファを作成します。abstract ShortBufferByteBuffer. asShortBuffer()shortバッファとしてこのbyteバッファのビューを作成します。ShortBufferShortBuffer. clear()このバッファをクリアします。abstract ShortBufferShortBuffer. compact()このバッファを圧縮します (オプションの操作)。abstract ShortBufferShortBuffer. duplicate()このバッファの内容を共有する新しいshortバッファを作成します。ShortBufferShortBuffer. flip()このバッファをフリップ(反転)します。ShortBufferShortBuffer. get(int index, short[] dst)絶対一括getメソッド。ShortBufferShortBuffer. get(int index, short[] dst, int offset, int length)絶対一括getメソッド。ShortBufferShortBuffer. get(short[] dst)相対一括getメソッドです。ShortBufferShortBuffer. get(short[] dst, int offset, int length)相対一括getメソッドです。ShortBufferShortBuffer. limit(int newLimit)このバッファのリミットを設定します。ShortBufferShortBuffer. mark()このバッファの現在位置にマークを設定します。ShortBufferShortBuffer. position(int newPosition)このバッファの位置を設定します。abstract ShortBufferShortBuffer. put(int index, short s)絶対putメソッドです (オプションの操作)。ShortBufferShortBuffer. put(int index, short[] src)(optional operation)の絶対一括putメソッド。ShortBufferShortBuffer. put(int index, short[] src, int offset, int length)(optional operation)の絶対一括putメソッド。abstract ShortBufferShortBuffer. put(short s)相対putメソッドです (オプションの操作)。ShortBufferShortBuffer. put(short[] src)相対一括putメソッドです (オプションの操作)。ShortBufferShortBuffer. put(short[] src, int offset, int length)相対一括putメソッドです (オプションの操作)。ShortBufferShortBuffer. put(ShortBuffer src)相対一括putメソッドです (オプションの操作)。ShortBufferShortBuffer. reset()バッファの位置を以前にマークした位置に戻します。ShortBufferShortBuffer. rewind()このバッファをリワインド(巻き戻し)します。abstract ShortBufferShortBuffer. slice()このバッファの内容の共有サブシーケンスを内容とする新しいshortバッファを作成します。abstract ShortBufferShortBuffer. slice(int index, int length)このバッファの内容の共有サブシーケンスを内容とする新しいshortバッファを作成します。static ShortBufferShortBuffer. wrap(short[] array)short配列をバッファにラップします。static ShortBufferShortBuffer. wrap(short[] array, int offset, int length)short配列をバッファにラップします。ShortBuffer型のパラメータを持つjava.nioのメソッド 修飾子と型 メソッド 説明 intShortBuffer. compareTo(ShortBuffer that)このバッファを別のバッファと比較します。intShortBuffer. mismatch(ShortBuffer that)このバッファと指定されたバッファの最初の不一致の相対索引を検索して戻します。ShortBufferShortBuffer. put(ShortBuffer src)相対一括putメソッドです (オプションの操作)。