Uses of Class
java.nio.ByteOrder
Packages that use 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 and efficient foreign memory/function access, directly from Java.
Incubating Feature. Will be removed in a future release.
-
Uses of ByteOrder in java.lang.invoke
Methods in java.lang.invoke with parameters of type ByteOrderModifier and TypeMethodDescriptionstatic VarHandleMethodHandles.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 VarHandleMethodHandles.byteBufferViewVarHandle(Class<?> viewArrayClass, ByteOrder byteOrder) Produces a VarHandle giving access to elements of aByteBufferviewed 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 final ByteOrderByteOrder.BIG_ENDIANConstant denoting big-endian byte order.static final ByteOrderByteOrder.LITTLE_ENDIANConstant denoting little-endian byte order.Modifier and TypeMethodDescriptionstatic ByteOrderByteOrder.nativeOrder()Retrieves the native byte order of the underlying platform.final ByteOrderByteBuffer.order()Retrieves this buffer's byte order.abstract ByteOrderCharBuffer.order()Retrieves this buffer's byte order.abstract ByteOrderDoubleBuffer.order()Retrieves this buffer's byte order.abstract ByteOrderFloatBuffer.order()Retrieves this buffer's byte order.abstract ByteOrderIntBuffer.order()Retrieves this buffer's byte order.abstract ByteOrderLongBuffer.order()Retrieves this buffer's byte order.abstract ByteOrderShortBuffer.order()Retrieves this buffer's byte order. -
Uses of ByteOrder in javax.imageio.stream
Fields in javax.imageio.stream declared as ByteOrderModifier and TypeFieldDescriptionprotected ByteOrderImageInputStreamImpl.byteOrderThe byte order of the stream as an instance of the enumeration classjava.nio.ByteOrder, whereByteOrder.BIG_ENDIANindicates network byte order andByteOrder.LITTLE_ENDIANindicates the reverse order.Methods in javax.imageio.stream that return ByteOrderModifier and TypeMethodDescriptionImageInputStream.getByteOrder()Returns the byte order with which data values will be read from this stream as an instance of thejava.nio.ByteOrderenumeration.ImageInputStreamImpl.getByteOrder()Methods in javax.imageio.stream with parameters of type ByteOrderModifier and TypeMethodDescriptionvoidImageInputStream.setByteOrder(ByteOrder byteOrder) Sets the desired byte order for future reads of data values from this stream.voidImageInputStreamImpl.setByteOrder(ByteOrder byteOrder) -
Uses of ByteOrder in jdk.incubator.foreign
Methods in jdk.incubator.foreign that return ByteOrderMethods in jdk.incubator.foreign with parameters of type ByteOrderModifier and TypeMethodDescriptionstatic charMemoryAccess.getChar(MemorySegment segment, ByteOrder order) Reads a char from given segment, with given byte order.static charMemoryAccess.getCharAtIndex(MemorySegment segment, long index, ByteOrder order) Reads a char from given segment and element index, with given byte order.static charMemoryAccess.getCharAtOffset(MemorySegment segment, long offset, ByteOrder order) Reads a char from given segment and offset with given byte order.static doubleMemoryAccess.getDouble(MemorySegment segment, ByteOrder order) Reads a double from given segment, with given byte order.static doubleMemoryAccess.getDoubleAtIndex(MemorySegment segment, long index, ByteOrder order) Reads a double from given segment and element index, with given byte order.static doubleMemoryAccess.getDoubleAtOffset(MemorySegment segment, long offset, ByteOrder order) Reads a double from given segment and offset with given byte order.static floatMemoryAccess.getFloat(MemorySegment segment, ByteOrder order) Reads a float from given segment, with given byte order.static floatMemoryAccess.getFloatAtIndex(MemorySegment segment, long index, ByteOrder order) Reads a float from given segment and element index, with given byte order.static floatMemoryAccess.getFloatAtOffset(MemorySegment segment, long offset, ByteOrder order) Reads a float from given segment and offset with given byte order.static intMemoryAccess.getInt(MemorySegment segment, ByteOrder order) Reads an int from given segment, with given byte order.static intMemoryAccess.getIntAtIndex(MemorySegment segment, long index, ByteOrder order) Reads an int from given segment and element index, with given byte order.static intMemoryAccess.getIntAtOffset(MemorySegment segment, long offset, ByteOrder order) Reads an int from given segment and offset with given byte order.static longMemoryAccess.getLong(MemorySegment segment, ByteOrder order) Reads a long from given segment, with given byte order.static longMemoryAccess.getLongAtIndex(MemorySegment segment, long index, ByteOrder order) Reads a long from given segment and element index, with given byte order.static longMemoryAccess.getLongAtOffset(MemorySegment segment, long offset, ByteOrder order) Reads a long from given segment and offset with given byte order.static shortMemoryAccess.getShort(MemorySegment segment, ByteOrder order) Reads a short from given segment, with given byte order.static shortMemoryAccess.getShortAtIndex(MemorySegment segment, long index, ByteOrder order) Reads a short from given segment and element index, with given byte order.static shortMemoryAccess.getShortAtOffset(MemorySegment segment, long offset, ByteOrder order) Reads a short from given segment and offset with given byte order.static voidMemoryAccess.setChar(MemorySegment segment, ByteOrder order, char value) Writes a char at given segment, with given byte order.static voidMemoryAccess.setCharAtIndex(MemorySegment segment, long index, ByteOrder order, char value) Writes a char at given segment and element index, with given byte order.static voidMemoryAccess.setCharAtOffset(MemorySegment segment, long offset, ByteOrder order, char value) Writes a char at given segment and offset with given byte order.static voidMemoryAccess.setDouble(MemorySegment segment, ByteOrder order, double value) Writes a double at given segment, with given byte order.static voidMemoryAccess.setDoubleAtIndex(MemorySegment segment, long index, ByteOrder order, double value) Writes a double at given segment and element index, with given byte order.static voidMemoryAccess.setDoubleAtOffset(MemorySegment segment, long offset, ByteOrder order, double value) Writes a double at given segment and offset with given byte order.static voidMemoryAccess.setFloat(MemorySegment segment, ByteOrder order, float value) Writes a float at given segment, with given byte order.static voidMemoryAccess.setFloatAtIndex(MemorySegment segment, long index, ByteOrder order, float value) Writes a float at given segment and element index, with given byte order.static voidMemoryAccess.setFloatAtOffset(MemorySegment segment, long offset, ByteOrder order, float value) Writes a float at given segment and offset with given byte order.static voidMemoryAccess.setInt(MemorySegment segment, ByteOrder order, int value) Writes an int at given segment, with given byte order.static voidMemoryAccess.setIntAtIndex(MemorySegment segment, long index, ByteOrder order, int value) Writes an int at given segment and element index, with given byte order.static voidMemoryAccess.setIntAtOffset(MemorySegment segment, long offset, ByteOrder order, int value) Writes an int at given segment and offset with given byte order.static voidMemoryAccess.setLong(MemorySegment segment, ByteOrder order, long value) Writes a long at given segment, with given byte order.static voidMemoryAccess.setLongAtIndex(MemorySegment segment, long index, ByteOrder order, long value) Writes a long at given segment and element index, with given byte order.static voidMemoryAccess.setLongAtOffset(MemorySegment segment, long offset, ByteOrder order, long value) Writes a long at given segment and offset with given byte order.static voidMemoryAccess.setShort(MemorySegment segment, ByteOrder order, short value) Writes a short at given segment, with given byte order.static voidMemoryAccess.setShortAtIndex(MemorySegment segment, long index, ByteOrder order, short value) Writes a short at given segment and element index, with given byte order.static voidMemoryAccess.setShortAtOffset(MemorySegment segment, long offset, ByteOrder order, short value) Writes a short at given segment and offset with given byte order.static ValueLayoutMemoryLayout.valueLayout(long size, ByteOrder order) Create a value layout of given byte order and size.static VarHandleCreates a memory access var handle with the given carrier type, alignment constraint, and byte order.static VarHandleCreates 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
Methods in jdk.incubator.vector with parameters of type ByteOrderModifier and TypeMethodDescriptionstatic ByteVectorByteVector.fromByteArray(VectorSpecies<Byte> species, byte[] a, int offset, ByteOrder bo) Loads a vector from a byte array starting at an offset.static ByteVectorByteVector.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 DoubleVectorDoubleVector.fromByteArray(VectorSpecies<Double> species, byte[] a, int offset, ByteOrder bo) Loads a vector from a byte array starting at an offset.static DoubleVectorDoubleVector.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 FloatVectorFloatVector.fromByteArray(VectorSpecies<Float> species, byte[] a, int offset, ByteOrder bo) Loads a vector from a byte array starting at an offset.static FloatVectorFloatVector.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 IntVectorIntVector.fromByteArray(VectorSpecies<Integer> species, byte[] a, int offset, ByteOrder bo) Loads a vector from a byte array starting at an offset.static IntVectorIntVector.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 LongVectorLongVector.fromByteArray(VectorSpecies<Long> species, byte[] a, int offset, ByteOrder bo) Loads a vector from a byte array starting at an offset.static LongVectorLongVector.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 ShortVectorShortVector.fromByteArray(VectorSpecies<Short> species, byte[] a, int offset, ByteOrder bo) Loads a vector from a byte array starting at an offset.static ShortVectorShortVector.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 ByteVectorByteVector.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 ByteVectorByteVector.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 DoubleVectorDoubleVector.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 DoubleVectorDoubleVector.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 FloatVectorFloatVector.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 FloatVectorFloatVector.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 IntVectorIntVector.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 IntVectorIntVector.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 LongVectorLongVector.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 LongVectorLongVector.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 ShortVectorShortVector.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 ShortVectorShortVector.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.final voidByteVector.intoByteArray(byte[] a, int offset, ByteOrder bo) Stores this vector into a byte array starting at an offset using explicit byte order.final voidByteVector.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.final voidDoubleVector.intoByteArray(byte[] a, int offset, ByteOrder bo) Stores this vector into a byte array starting at an offset using explicit byte order.final voidDoubleVector.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.final voidFloatVector.intoByteArray(byte[] a, int offset, ByteOrder bo) Stores this vector into a byte array starting at an offset using explicit byte order.final voidFloatVector.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.final voidIntVector.intoByteArray(byte[] a, int offset, ByteOrder bo) Stores this vector into a byte array starting at an offset using explicit byte order.final voidIntVector.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.final voidLongVector.intoByteArray(byte[] a, int offset, ByteOrder bo) Stores this vector into a byte array starting at an offset using explicit byte order.final voidLongVector.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.final voidShortVector.intoByteArray(byte[] a, int offset, ByteOrder bo) Stores this vector into a byte array starting at an offset using explicit byte order.final voidShortVector.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 voidVector.intoByteArray(byte[] a, int offset, ByteOrder bo) Stores this vector into a byte array starting at an offset using explicit byte order.abstract voidVector.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.final voidByteVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo) Stores this vector into a byte buffer starting at an offset using explicit byte order.final voidByteVector.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.final voidDoubleVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo) Stores this vector into a byte buffer starting at an offset using explicit byte order.final voidDoubleVector.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.final voidFloatVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo) Stores this vector into a byte buffer starting at an offset using explicit byte order.final voidFloatVector.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.final voidIntVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo) Stores this vector into a byte buffer starting at an offset using explicit byte order.final voidIntVector.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.final voidLongVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo) Stores this vector into a byte buffer starting at an offset using explicit byte order.final voidLongVector.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.final voidShortVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo) Stores this vector into a byte buffer starting at an offset using explicit byte order.final voidShortVector.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 voidVector.intoByteBuffer(ByteBuffer bb, int offset, ByteOrder bo) Stores this vector into a byte buffer starting at an offset using explicit byte order.abstract voidVector.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.