Uses of Class
java.nio.ByteOrder
Package
Description
The
java.lang.invoke
package provides low-level primitives for interacting
with the Java Virtual Machine.Defines buffers, which are containers for data, and provides an
overview of the other NIO packages.
A package of the Java Image I/O API dealing with low-level I/O from files and
streams.
Classes to support low-level, safe and efficient memory access.
Incubating Feature. Will be removed in a future release.
-
Uses of ByteOrder in java.lang.invoke
Modifier and TypeMethodDescriptionstatic VarHandle
MethodHandles.byteArrayViewVarHandle(Class<?> viewArrayClass, ByteOrder byteOrder)
Produces a VarHandle giving access to elements of abyte[]
array viewed as if it were a different primitive array type, such asint[]
orlong[]
.static VarHandle
MethodHandles.byteBufferViewVarHandle(Class<?> viewArrayClass, ByteOrder byteOrder)
Produces a VarHandle giving access to elements of aByteBuffer
viewed as if it were an array of elements of a different primitive component type to that ofbyte
, such asint[]
orlong[]
. -
Uses of ByteOrder in java.nio
Modifier and TypeFieldDescriptionstatic ByteOrder
ByteOrder.BIG_ENDIAN
Constant denoting big-endian byte order.static ByteOrder
ByteOrder.LITTLE_ENDIAN
Constant denoting little-endian byte order.Modifier and TypeMethodDescriptionstatic ByteOrder
ByteOrder.nativeOrder()
Retrieves the native byte order of the underlying platform.ByteBuffer.order()
Retrieves this buffer's byte order.abstract ByteOrder
CharBuffer.order()
Retrieves this buffer's byte order.abstract ByteOrder
DoubleBuffer.order()
Retrieves this buffer's byte order.abstract ByteOrder
FloatBuffer.order()
Retrieves this buffer's byte order.abstract ByteOrder
IntBuffer.order()
Retrieves this buffer's byte order.abstract ByteOrder
LongBuffer.order()
Retrieves this buffer's byte order.abstract ByteOrder
ShortBuffer.order()
Retrieves this buffer's byte order.Modifier and TypeMethodDescriptionModifies this buffer's byte order. -
Uses of ByteOrder in javax.imageio.stream
Modifier and TypeFieldDescriptionprotected ByteOrder
ImageInputStreamImpl.byteOrder
The byte order of the stream as an instance of the enumeration classjava.nio.ByteOrder
, whereByteOrder.BIG_ENDIAN
indicates network byte order andByteOrder.LITTLE_ENDIAN
indicates the reverse order.Modifier and TypeMethodDescriptionImageInputStream.getByteOrder()
Returns the byte order with which data values will be read from this stream as an instance of thejava.nio.ByteOrder
enumeration.Modifier and TypeMethodDescriptionvoid
ImageInputStream.setByteOrder(ByteOrder byteOrder)
Sets the desired byte order for future reads of data values from this stream. -
Uses of ByteOrder in jdk.incubator.foreign
Modifier and TypeMethodDescriptionstatic ValueLayout
MemoryLayout.ofValueBits(long size, ByteOrder order)
Create a value layout of given byte order and size.static VarHandle
Creates a memory access var handle with the given carrier type, alignment constraint, and byte order.static VarHandle
Creates a memory access var handle with the given carrier type and byte order.Returns a new value layout with given byte order. -
Uses of ByteOrder in jdk.incubator.vector
Modifier and TypeMethodDescriptionstatic ByteVector
ByteVector.fromByteArray(VectorSpecies<Byte> species, byte[] a, int offset, ByteOrder bo)
Loads a vector from a byte array starting at an offset.static ByteVector
ByteVector.fromByteArray(VectorSpecies<Byte> species, byte[] a, int offset, ByteOrder bo, VectorMask<Byte> m)
Loads a vector from a byte array starting at an offset and using a mask.static DoubleVector
DoubleVector.fromByteArray(VectorSpecies<Double> species, byte[] a, int offset, ByteOrder bo)
Loads a vector from a byte array starting at an offset.static DoubleVector
DoubleVector.fromByteArray(VectorSpecies<Double> species, byte[] a, int offset, ByteOrder bo, VectorMask<Double> m)
Loads a vector from a byte array starting at an offset and using a mask.static FloatVector
FloatVector.fromByteArray(VectorSpecies<Float> species, byte[] a, int offset, ByteOrder bo)
Loads a vector from a byte array starting at an offset.static FloatVector
FloatVector.fromByteArray(VectorSpecies<Float> species, byte[] a, int offset, ByteOrder bo, VectorMask<Float> m)
Loads a vector from a byte array starting at an offset and using a mask.static IntVector
IntVector.fromByteArray(VectorSpecies<Integer> species, byte[] a, int offset, ByteOrder bo)
Loads a vector from a byte array starting at an offset.static IntVector
IntVector.fromByteArray(VectorSpecies<Integer> species, byte[] a, int offset, ByteOrder bo, VectorMask<Integer> m)
Loads a vector from a byte array starting at an offset and using a mask.static LongVector
LongVector.fromByteArray(VectorSpecies<Long> species, byte[] a, int offset, ByteOrder bo)
Loads a vector from a byte array starting at an offset.static LongVector
LongVector.fromByteArray(VectorSpecies<Long> species, byte[] a, int offset, ByteOrder bo, VectorMask<Long> m)
Loads a vector from a byte array starting at an offset and using a mask.static ShortVector
ShortVector.fromByteArray(VectorSpecies<Short> species, byte[] a, int offset, ByteOrder bo)
Loads a vector from a byte array starting at an offset.static ShortVector
ShortVector.fromByteArray(VectorSpecies<Short> species, byte[] a, int offset, ByteOrder bo, VectorMask<Short> m)
Loads a vector from a byte array starting at an offset and using a mask.VectorSpecies.fromByteArray(byte[] a, int offset, ByteOrder bo)
Loads a vector of this species from a byte array starting at an offset.static ByteVector
ByteVector.fromByteBuffer(VectorSpecies<Byte> species, ByteBuffer bb, int offset, ByteOrder bo)
Loads a vector from a byte buffer starting at an offset into the byte buffer.static ByteVector
ByteVector.fromByteBuffer(VectorSpecies<Byte> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Byte> m)
Loads a vector from a byte buffer starting at an offset into the byte buffer and using a mask.static DoubleVector
DoubleVector.fromByteBuffer(VectorSpecies<Double> species, ByteBuffer bb, int offset, ByteOrder bo)
Loads a vector from a byte buffer starting at an offset into the byte buffer.static DoubleVector
DoubleVector.fromByteBuffer(VectorSpecies<Double> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Double> m)
Loads a vector from a byte buffer starting at an offset into the byte buffer and using a mask.static FloatVector
FloatVector.fromByteBuffer(VectorSpecies<Float> species, ByteBuffer bb, int offset, ByteOrder bo)
Loads a vector from a byte buffer starting at an offset into the byte buffer.static FloatVector
FloatVector.fromByteBuffer(VectorSpecies<Float> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Float> m)
Loads a vector from a byte buffer starting at an offset into the byte buffer and using a mask.static IntVector
IntVector.fromByteBuffer(VectorSpecies<Integer> species, ByteBuffer bb, int offset, ByteOrder bo)
Loads a vector from a byte buffer starting at an offset into the byte buffer.static IntVector
IntVector.fromByteBuffer(VectorSpecies<Integer> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Integer> m)
Loads a vector from a byte buffer starting at an offset into the byte buffer and using a mask.static LongVector
LongVector.fromByteBuffer(VectorSpecies<Long> species, ByteBuffer bb, int offset, ByteOrder bo)
Loads a vector from a byte buffer starting at an offset into the byte buffer.static LongVector
LongVector.fromByteBuffer(VectorSpecies<Long> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Long> m)
Loads a vector from a byte buffer starting at an offset into the byte buffer and using a mask.static ShortVector
ShortVector.fromByteBuffer(VectorSpecies<Short> species, ByteBuffer bb, int offset, ByteOrder bo)
Loads a vector from a byte buffer starting at an offset into the byte buffer.static ShortVector
ShortVector.fromByteBuffer(VectorSpecies<Short> species, ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Short> m)
Loads a vector from a byte buffer starting at an offset into the byte buffer and using a mask.void
ByteVector.intoByteArray(byte[] a, int offset, ByteOrder bo)
Stores this vector into a byte array starting at an offset using explicit byte order.void
ByteVector.intoByteArray(byte[] a, int offset, ByteOrder bo, VectorMask<Byte> m)
Stores this vector into a byte array starting at an offset using explicit byte order and a mask.void
DoubleVector.intoByteArray(byte[] a, int offset, ByteOrder bo)
Stores this vector into a byte array starting at an offset using explicit byte order.void
DoubleVector.intoByteArray(byte[] a, int offset, ByteOrder bo, VectorMask<Double> m)
Stores this vector into a byte array starting at an offset using explicit byte order and a mask.void
FloatVector.intoByteArray(byte[] a, int offset, ByteOrder bo)
Stores this vector into a byte array starting at an offset using explicit byte order.void
FloatVector.intoByteArray(byte[] a, int offset, ByteOrder bo, VectorMask<Float> m)
Stores this vector into a byte array starting at an offset using explicit byte order and a mask.void
IntVector.intoByteArray(byte[] a, int offset, ByteOrder bo)
Stores this vector into a byte array starting at an offset using explicit byte order.void
IntVector.intoByteArray(byte[] a, int offset, ByteOrder bo, VectorMask<Integer> m)
Stores this vector into a byte array starting at an offset using explicit byte order and a mask.void
LongVector.intoByteArray(byte[] a, int offset, ByteOrder bo)
Stores this vector into a byte array starting at an offset using explicit byte order.void
LongVector.intoByteArray(byte[] a, int offset, ByteOrder bo, VectorMask<Long> m)
Stores this vector into a byte array starting at an offset using explicit byte order and a mask.void
ShortVector.intoByteArray(byte[] a, int offset, ByteOrder bo)
Stores this vector into a byte array starting at an offset using explicit byte order.void
ShortVector.intoByteArray(byte[] a, int offset, ByteOrder bo, VectorMask<Short> m)
Stores this vector into a byte array starting at an offset using explicit byte order and a mask.abstract void
Vector.intoByteArray(byte[] a, int offset, ByteOrder bo)
Stores this vector into a byte array starting at an offset using explicit byte order.abstract void
Vector.intoByteArray(byte[] a, int offset, ByteOrder bo, VectorMask<E> m)
Stores this vector into a byte array starting at an offset using explicit byte order and a mask.void
ByteVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo)
Stores this vector into a byte buffer starting at an offset using explicit byte order.void
ByteVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Byte> m)
Stores this vector into a byte buffer starting at an offset using explicit byte order and a mask.void
DoubleVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo)
Stores this vector into a byte buffer starting at an offset using explicit byte order.void
DoubleVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Double> m)
Stores this vector into a byte buffer starting at an offset using explicit byte order and a mask.void
FloatVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo)
Stores this vector into a byte buffer starting at an offset using explicit byte order.void
FloatVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Float> m)
Stores this vector into a byte buffer starting at an offset using explicit byte order and a mask.void
IntVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo)
Stores this vector into a byte buffer starting at an offset using explicit byte order.void
IntVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Integer> m)
Stores this vector into a byte buffer starting at an offset using explicit byte order and a mask.void
LongVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo)
Stores this vector into a byte buffer starting at an offset using explicit byte order.void
LongVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Long> m)
Stores this vector into a byte buffer starting at an offset using explicit byte order and a mask.void
ShortVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo)
Stores this vector into a byte buffer starting at an offset using explicit byte order.void
ShortVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo, VectorMask<Short> m)
Stores this vector into a byte buffer starting at an offset using explicit byte order and a mask.abstract void
Vector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo)
Stores this vector into a byte buffer starting at an offset using explicit byte order.abstract void
Vector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo, VectorMask<E> m)
Stores this vector into a byte buffer starting at an offset using explicit byte order and a mask.