クラス
java.nio.ByteOrderの使用
ByteOrderを使用するパッケージ
パッケージ
説明
java.lang.invoke
パッケージは、Java Virtual Machineとやりとりするための低レベルのプリミティブを提供します。データのコンテナであるバッファについて定義し、その他のNIOパッケージの概要情報を提供します。
ファイルとストリームからの低レベル入出力を処理する、Javaイメージ入出力APIのパッケージです。
Javaから直接、低レベルで効率的な外部メモリー/ファンクション・アクセスをサポートするクラス。
「インキュベート機能」。 将来のリリースで削除されます。
-
java.lang.invokeでのByteOrderの使用
型ByteOrderのパラメータを持つjava.lang.invokeのメソッド修飾子と型メソッド説明static VarHandle
MethodHandles.byteArrayViewVarHandle(Class<?> viewArrayClass, ByteOrder byteOrder)
byte[]
配列の要素にアクセスするVarHandleを生成し、int[]
やlong[]
などの異なるプリミティブ配列型であるかのように見せます。static VarHandle
MethodHandles.byteBufferViewVarHandle(Class<?> viewArrayClass, ByteOrder byteOrder)
int[]
またはlong[]
など、byte
の要素にアクセスするVarHandleを生成します。これは、ByteBuffer
の要素と異なるプリミティブ・コンポーネント型の要素の配列であるかのように見えます。 -
java.nioでのByteOrderの使用
修飾子と型フィールド説明static ByteOrder
ByteOrder.BIG_ENDIAN
ビッグ・エンディアンbyte順序を示す定数です。static ByteOrder
ByteOrder.LITTLE_ENDIAN
リトル・エンディアンbyte順序を示す定数です。修飾子と型メソッド説明static ByteOrder
ByteOrder.nativeOrder()
ベースとなるネイティブのbyte順序を取得します。ByteBuffer.order()
このバッファのbyte順序を取得します。abstract ByteOrder
CharBuffer.order()
このバッファのbyte順序を取得します。abstract ByteOrder
DoubleBuffer.order()
このバッファのbyte順序を取得します。abstract ByteOrder
FloatBuffer.order()
このバッファのbyte順序を取得します。abstract ByteOrder
IntBuffer.order()
このバッファのbyte順序を取得します。abstract ByteOrder
LongBuffer.order()
このバッファのbyte順序を取得します。abstract ByteOrder
ShortBuffer.order()
このバッファのbyte順序を取得します。 -
javax.imageio.streamでのByteOrderの使用
ByteOrderとして宣言されたjavax.imageio.streamのフィールド修飾子と型フィールド説明protected ByteOrder
ImageInputStreamImpl.byteOrder
列挙クラスjava.nio.ByteOrder
のインスタンスで表されるストリームのバイト順で、ByteOrder.BIG_ENDIAN
はネットワーク・バイト順、ByteOrder.LITTLE_ENDIAN
は逆順を示します。ByteOrderを返すjavax.imageio.streamのメソッド修飾子と型メソッド説明ImageInputStream.getByteOrder()
このストリームから読み込まれるデータのバイト順を、java.nio.ByteOrder
列挙のインスタンスとして返します。ImageInputStreamImpl.getByteOrder()
型ByteOrderのパラメータを持つjavax.imageio.streamのメソッド修飾子と型メソッド説明void
ImageInputStream.setByteOrder(ByteOrder byteOrder)
このストリームからの今後のデータ値の読込みのために、バイト順を設定します。void
ImageInputStreamImpl.setByteOrder(ByteOrder byteOrder)
-
jdk.incubator.foreignでのByteOrderの使用
ByteOrderを返すjdk.incubator.foreignのメソッド型ByteOrderのパラメータを持つjdk.incubator.foreignのメソッド修飾子と型メソッド説明static char
MemoryAccess.getChar(MemorySegment segment, ByteOrder order)
指定されたバイト順で、指定されたセグメントからcharを読み込みます。static char
MemoryAccess.getCharAtIndex(MemorySegment segment, long index, ByteOrder order)
指定されたバイト順で、指定されたセグメントおよび要素インデックスからcharを読み込みます。static char
MemoryAccess.getCharAtOffset(MemorySegment segment, long offset, ByteOrder order)
指定されたバイト順で、指定されたセグメントおよびオフセットからcharを読み込みます。static double
MemoryAccess.getDouble(MemorySegment segment, ByteOrder order)
指定されたバイト順で、指定されたセグメントからdoubleを読み込みます。static double
MemoryAccess.getDoubleAtIndex(MemorySegment segment, long index, ByteOrder order)
指定されたバイト順で、指定されたセグメントおよび要素インデックスからdoubleを読み込みます。static double
MemoryAccess.getDoubleAtOffset(MemorySegment segment, long offset, ByteOrder order)
指定されたバイト順で、指定されたセグメントおよびオフセットからdoubleを読み込みます。static float
MemoryAccess.getFloat(MemorySegment segment, ByteOrder order)
指定されたバイト順で、指定されたセグメントからfloatを読み込みます。static float
MemoryAccess.getFloatAtIndex(MemorySegment segment, long index, ByteOrder order)
指定されたバイト順で、指定されたセグメントおよび要素インデックスからfloatを読み込みます。static float
MemoryAccess.getFloatAtOffset(MemorySegment segment, long offset, ByteOrder order)
指定されたバイト順序で、指定されたセグメントおよびオフセットからfloatを読み込みます。static int
MemoryAccess.getInt(MemorySegment segment, ByteOrder order)
指定されたバイト順で、指定されたセグメントからintを読み込みます。static int
MemoryAccess.getIntAtIndex(MemorySegment segment, long index, ByteOrder order)
指定されたバイト順で、指定されたセグメントおよび要素インデックスからintを読み込みます。static int
MemoryAccess.getIntAtOffset(MemorySegment segment, long offset, ByteOrder order)
指定されたバイト順で、指定されたセグメントおよびオフセットからintを読み込みます。static long
MemoryAccess.getLong(MemorySegment segment, ByteOrder order)
指定されたバイト順で、指定されたセグメントからlongを読み込みます。static long
MemoryAccess.getLongAtIndex(MemorySegment segment, long index, ByteOrder order)
指定されたバイト順で、指定されたセグメントおよび要素インデックスからlongを読み込みます。static long
MemoryAccess.getLongAtOffset(MemorySegment segment, long offset, ByteOrder order)
指定されたバイト順で、指定されたセグメントおよびオフセットからlongを読み込みます。static short
MemoryAccess.getShort(MemorySegment segment, ByteOrder order)
指定されたバイト順で、指定されたセグメントからshortを読み込みます。static short
MemoryAccess.getShortAtIndex(MemorySegment segment, long index, ByteOrder order)
指定されたバイト順で、指定されたセグメントおよび要素インデックスからshortを読み込みます。static short
MemoryAccess.getShortAtOffset(MemorySegment segment, long offset, ByteOrder order)
指定されたバイト順で、指定されたセグメントおよびオフセットからshortを読み込みます。static ValueLayout
MemoryLayout.ofValueBits(long size, ByteOrder order)
指定されたバイト順とサイズの値レイアウトを作成します。static void
MemoryAccess.setChar(MemorySegment segment, ByteOrder order, char value)
指定されたバイト順で、指定されたセグメントにcharを書き込みます。static void
MemoryAccess.setCharAtIndex(MemorySegment segment, long index, ByteOrder order, char value)
指定されたバイト順で、指定されたセグメントおよび要素インデックスにcharを書き込みます。static void
MemoryAccess.setCharAtOffset(MemorySegment segment, long offset, ByteOrder order, char value)
指定されたバイト順で、指定されたセグメントおよびオフセットにcharを書き込みます。static void
MemoryAccess.setDouble(MemorySegment segment, ByteOrder order, double value)
指定されたバイト順で、指定されたセグメントにdoubleを書き込みます。static void
MemoryAccess.setDoubleAtIndex(MemorySegment segment, long index, ByteOrder order, double value)
指定されたバイト順で、指定されたセグメントおよび要素インデックスにdoubleを書き込みます。static void
MemoryAccess.setDoubleAtOffset(MemorySegment segment, long offset, ByteOrder order, double value)
指定されたバイト順で、指定されたセグメントおよびオフセットにdoubleを書き込みます。static void
MemoryAccess.setFloat(MemorySegment segment, ByteOrder order, float value)
指定されたバイト順で、指定されたセグメントにfloatを書き込みます。static void
MemoryAccess.setFloatAtIndex(MemorySegment segment, long index, ByteOrder order, float value)
指定されたバイト順で、指定されたセグメントおよび要素インデックスにfloatを書き込みます。static void
MemoryAccess.setFloatAtOffset(MemorySegment segment, long offset, ByteOrder order, float value)
指定されたバイト順序で、指定されたセグメントおよびオフセットにfloatを書き込みます。static void
MemoryAccess.setInt(MemorySegment segment, ByteOrder order, int value)
指定されたバイト順で、指定されたセグメントにintを書き込みます。static void
MemoryAccess.setIntAtIndex(MemorySegment segment, long index, ByteOrder order, int value)
指定されたバイト順で、指定されたセグメントおよび要素インデックスにintを書き込みます。static void
MemoryAccess.setIntAtOffset(MemorySegment segment, long offset, ByteOrder order, int value)
指定されたバイト順で、指定されたセグメントおよびオフセットにintを書き込みます。static void
MemoryAccess.setLong(MemorySegment segment, ByteOrder order, long value)
指定されたバイト順で、指定されたセグメントにlongを書き込みます。static void
MemoryAccess.setLongAtIndex(MemorySegment segment, long index, ByteOrder order, long value)
指定されたバイト順で、指定されたセグメントおよび要素インデックスにlongを書き込みます。static void
MemoryAccess.setLongAtOffset(MemorySegment segment, long offset, ByteOrder order, long value)
指定されたバイト順で、指定されたセグメントおよびオフセットにlongを書き込みます。static void
MemoryAccess.setShort(MemorySegment segment, ByteOrder order, short value)
指定されたバイト順で、指定されたセグメントにshortを書き込みます。static void
MemoryAccess.setShortAtIndex(MemorySegment segment, long index, ByteOrder order, short value)
指定されたバイト順で、指定されたセグメントおよび要素インデックスにshortを書き込みます。static void
MemoryAccess.setShortAtOffset(MemorySegment segment, long offset, ByteOrder order, short value)
指定されたバイト順で、指定されたセグメントとオフセットにshortを書き込みます。static VarHandle
指定されたキャリア・タイプ、位置合せ制約、およびバイト順序でメモリー・アクセス・メトリックを作成します。static VarHandle
指定されたキャリア・タイプとバイト順序でメモリー・アクセス・メトリックを作成します。指定されたバイト順で新しい値レイアウトを返します。 -
jdk.incubator.vectorでのByteOrderの使用
型ByteOrderのパラメータを持つjdk.incubator.vectorのメソッド修飾子と型メソッド説明static ByteVector
ByteVector.fromByteArray(VectorSpecies<Byte> species, byte[] a, int offset, ByteOrder bo)
オフセットから始まるバイト配列からベクトルをロードします。static ByteVector
ByteVector.fromByteArray(VectorSpecies<Byte> species, byte[] a, int offset, ByteOrder bo, VectorMask<Byte> m)
オフセットからマスクを使用してバイト配列からベクトルをロードします。static DoubleVector
DoubleVector.fromByteArray(VectorSpecies<Double> species, byte[] a, int offset, ByteOrder bo)
オフセットから始まるバイト配列からベクトルをロードします。static DoubleVector
DoubleVector.fromByteArray(VectorSpecies<Double> species, byte[] a, int offset, ByteOrder bo, VectorMask<Double> m)
オフセットからマスクを使用してバイト配列からベクトルをロードします。static FloatVector
FloatVector.fromByteArray(VectorSpecies<Float> species, byte[] a, int offset, ByteOrder bo)
オフセットから始まるバイト配列からベクトルをロードします。static FloatVector
FloatVector.fromByteArray(VectorSpecies<Float> species, byte[] a, int offset, ByteOrder bo, VectorMask<Float> m)
オフセットからマスクを使用してバイト配列からベクトルをロードします。static IntVector
IntVector.fromByteArray(VectorSpecies<Integer> species, byte[] a, int offset, ByteOrder bo)
オフセットから始まるバイト配列からベクトルをロードします。static IntVector
IntVector.fromByteArray(VectorSpecies<Integer> species, byte[] a, int offset, ByteOrder bo, VectorMask<Integer> m)
オフセットからマスクを使用してバイト配列からベクトルをロードします。static LongVector
LongVector.fromByteArray(VectorSpecies<Long> species, byte[] a, int offset, ByteOrder bo)
オフセットから始まるバイト配列からベクトルをロードします。static LongVector
LongVector.fromByteArray(VectorSpecies<Long> species, byte[] a, int offset, ByteOrder bo, VectorMask<Long> m)
オフセットからマスクを使用してバイト配列からベクトルをロードします。static ShortVector
ShortVector.fromByteArray(VectorSpecies<Short> species, byte[] a, int offset, ByteOrder bo)
オフセットから始まるバイト配列からベクトルをロードします。static ShortVector
ShortVector.fromByteArray(VectorSpecies<Short> species, byte[] a, int offset, ByteOrder bo, VectorMask<Short> m)
オフセットからマスクを使用してバイト配列からベクトルをロードします。VectorSpecies.fromByteArray(byte[] a, int offset, ByteOrder bo)
オフセットから始まるバイト配列からこの種のベクトルをロードします。static ByteVector
ByteVector.fromByteBuffer(VectorSpecies<Byte> species, ByteBuffer bb, int offset, ByteOrder bo)
オフセットから始まるベクトルをbyte bufferからbyteバッファにロードします。static ByteVector
ByteVector.fromByteBuffer(VectorSpecies<Byte> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Byte> m)
オフセットからbyteバッファに開始し、マスクを使用して、byte bufferからベクトルをロードします。static DoubleVector
DoubleVector.fromByteBuffer(VectorSpecies<Double> species, ByteBuffer bb, int offset, ByteOrder bo)
オフセットから始まるベクトルをbyte bufferからbyteバッファにロードします。static DoubleVector
DoubleVector.fromByteBuffer(VectorSpecies<Double> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Double> m)
オフセットからbyteバッファに開始し、マスクを使用して、byte bufferからベクトルをロードします。static FloatVector
FloatVector.fromByteBuffer(VectorSpecies<Float> species, ByteBuffer bb, int offset, ByteOrder bo)
オフセットから始まるベクトルをbyte bufferからbyteバッファにロードします。static FloatVector
FloatVector.fromByteBuffer(VectorSpecies<Float> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Float> m)
オフセットからbyteバッファに開始し、マスクを使用して、byte bufferからベクトルをロードします。static IntVector
IntVector.fromByteBuffer(VectorSpecies<Integer> species, ByteBuffer bb, int offset, ByteOrder bo)
オフセットから始まるベクトルをbyte bufferからbyteバッファにロードします。static IntVector
IntVector.fromByteBuffer(VectorSpecies<Integer> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Integer> m)
オフセットからbyteバッファに開始し、マスクを使用して、byte bufferからベクトルをロードします。static LongVector
LongVector.fromByteBuffer(VectorSpecies<Long> species, ByteBuffer bb, int offset, ByteOrder bo)
オフセットから始まるベクトルをbyte bufferからbyteバッファにロードします。static LongVector
LongVector.fromByteBuffer(VectorSpecies<Long> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Long> m)
オフセットからbyteバッファに開始し、マスクを使用して、byte bufferからベクトルをロードします。static ShortVector
ShortVector.fromByteBuffer(VectorSpecies<Short> species, ByteBuffer bb, int offset, ByteOrder bo)
オフセットから始まるベクトルをbyte bufferからbyteバッファにロードします。static ShortVector
ShortVector.fromByteBuffer(VectorSpecies<Short> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Short> m)
オフセットからbyteバッファに開始し、マスクを使用して、byte bufferからベクトルをロードします。void
ByteVector.intoByteArray(byte[] a, int offset, ByteOrder bo)
明示的なバイト順序を使用して、オフセットから始まるバイト配列にこのベクトルを格納します。void
ByteVector.intoByteArray(byte[] a, int offset, ByteOrder bo, VectorMask<Byte> m)
明示的なバイト順序とマスクを使用して、オフセットから始まるバイト配列にこのベクトルを格納します。void
DoubleVector.intoByteArray(byte[] a, int offset, ByteOrder bo)
明示的なバイト順序を使用して、オフセットから始まるバイト配列にこのベクトルを格納します。void
DoubleVector.intoByteArray(byte[] a, int offset, ByteOrder bo, VectorMask<Double> m)
明示的なバイト順序とマスクを使用して、オフセットから始まるバイト配列にこのベクトルを格納します。void
FloatVector.intoByteArray(byte[] a, int offset, ByteOrder bo)
明示的なバイト順序を使用して、オフセットから始まるバイト配列にこのベクトルを格納します。void
FloatVector.intoByteArray(byte[] a, int offset, ByteOrder bo, VectorMask<Float> m)
明示的なバイト順序とマスクを使用して、オフセットから始まるバイト配列にこのベクトルを格納します。void
IntVector.intoByteArray(byte[] a, int offset, ByteOrder bo)
明示的なバイト順序を使用して、オフセットから始まるバイト配列にこのベクトルを格納します。void
IntVector.intoByteArray(byte[] a, int offset, ByteOrder bo, VectorMask<Integer> m)
明示的なバイト順序とマスクを使用して、オフセットから始まるバイト配列にこのベクトルを格納します。void
LongVector.intoByteArray(byte[] a, int offset, ByteOrder bo)
明示的なバイト順序を使用して、オフセットから始まるバイト配列にこのベクトルを格納します。void
LongVector.intoByteArray(byte[] a, int offset, ByteOrder bo, VectorMask<Long> m)
明示的なバイト順序とマスクを使用して、オフセットから始まるバイト配列にこのベクトルを格納します。void
ShortVector.intoByteArray(byte[] a, int offset, ByteOrder bo)
明示的なバイト順序を使用して、オフセットから始まるバイト配列にこのベクトルを格納します。void
ShortVector.intoByteArray(byte[] a, int offset, ByteOrder bo, VectorMask<Short> m)
明示的なバイト順序とマスクを使用して、オフセットから始まるバイト配列にこのベクトルを格納します。abstract void
Vector.intoByteArray(byte[] a, int offset, ByteOrder bo)
明示的なバイト順序を使用して、オフセットから始まるバイト配列にこのベクトルを格納します。abstract void
Vector.intoByteArray(byte[] a, int offset, ByteOrder bo, VectorMask<E> m)
明示的なバイト順序とマスクを使用して、オフセットから始まるバイト配列にこのベクトルを格納します。void
ByteVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo)
明示的なバイト順序を使用して、オフセットから始まるbyteバッファにこのベクトルを格納します。void
ByteVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Byte> m)
明示的なバイト順序とマスクを使用して、オフセットから始まるbyteバッファにこのベクトルを格納します。void
DoubleVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo)
明示的なバイト順序を使用して、オフセットから始まるbyteバッファにこのベクトルを格納します。void
DoubleVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Double> m)
明示的なバイト順序とマスクを使用して、オフセットから始まるbyteバッファにこのベクトルを格納します。void
FloatVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo)
明示的なバイト順序を使用して、オフセットから始まるbyteバッファにこのベクトルを格納します。void
FloatVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Float> m)
明示的なバイト順序とマスクを使用して、オフセットから始まるbyteバッファにこのベクトルを格納します。void
IntVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo)
明示的なバイト順序を使用して、オフセットから始まるbyteバッファにこのベクトルを格納します。void
IntVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Integer> m)
明示的なバイト順序とマスクを使用して、オフセットから始まるbyteバッファにこのベクトルを格納します。void
LongVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo)
明示的なバイト順序を使用して、オフセットから始まるbyteバッファにこのベクトルを格納します。void
LongVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Long> m)
明示的なバイト順序とマスクを使用して、オフセットから始まるbyteバッファにこのベクトルを格納します。void
ShortVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo)
明示的なバイト順序を使用して、オフセットから始まるbyteバッファにこのベクトルを格納します。void
ShortVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Short> m)
明示的なバイト順序とマスクを使用して、オフセットから始まるbyteバッファにこのベクトルを格納します。abstract void
Vector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo)
明示的なバイト順序を使用して、オフセットから始まるbyteバッファにこのベクトルを格納します。abstract void
Vector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo, VectorMask<E> m)
明示的なバイト順序とマスクを使用して、オフセットから始まるbyteバッファにこのベクトルを格納します。