Uses of Class
java.lang.foreign.ValueLayout.OfFloat
Packages that use ValueLayout.OfFloatPREVIEW
Package
Description
Provides low-level access to memory and functions outside the Java runtime.
-
Uses of ValueLayout.OfFloatPREVIEW in java.lang.foreign
Fields in java.lang.foreign declared as ValueLayout.OfFloatPREVIEWModifier and TypeFieldDescriptionstatic final ValueLayout.OfFloatPREVIEWValueLayout.JAVA_FLOATA value layout constant whose size is the same as that of a Javafloat, bit alignment set to 32, and byte order set toByteOrder.nativeOrder().Methods in java.lang.foreign that return ValueLayout.OfFloatPREVIEWMethods in java.lang.foreign with parameters of type ValueLayout.OfFloatPREVIEWModifier and TypeMethodDescriptiondefault MemorySegmentPREVIEWSegmentAllocator.allocate(ValueLayout.OfFloatPREVIEW layout, float value) Allocates a memory segment with the given layout and initializes it with the given float value.default MemorySegmentPREVIEWSegmentAllocator.allocateArray(ValueLayout.OfFloatPREVIEW elementLayout, float... elements) Allocates a memory segment with the given layout and initializes it with the given float elements.floatMemoryAddress.get(ValueLayout.OfFloatPREVIEW layout, long offset) Reads a float from this address at the given offset, with the given layout.default floatMemorySegment.get(ValueLayout.OfFloatPREVIEW layout, long offset) Reads a float from this segment at the given offset, with the given layout.floatMemoryAddress.getAtIndex(ValueLayout.OfFloatPREVIEW layout, long index) Reads a float from this address at the given index, scaled by the given layout size.default floatMemorySegment.getAtIndex(ValueLayout.OfFloatPREVIEW layout, long index) Reads a float from this segment at the given index, scaled by the given layout size.voidMemoryAddress.set(ValueLayout.OfFloatPREVIEW layout, long offset, float value) Writes a float into this address at the given offset, with the given layout.default voidMemorySegment.set(ValueLayout.OfFloatPREVIEW layout, long offset, float value) Writes a float into this segment at the given offset, with the given layout.voidMemoryAddress.setAtIndex(ValueLayout.OfFloatPREVIEW layout, long index, float value) Writes a float into this address at the given index, scaled by the given layout size.default voidMemorySegment.setAtIndex(ValueLayout.OfFloatPREVIEW layout, long index, float value) Writes a float into this segment at the given index, scaled by the given layout size.float[]MemorySegment.toArray(ValueLayout.OfFloatPREVIEW elementLayout) Copy the contents of this memory segment into a new float array.