Uses of Class
jdk.incubator.foreign.ValueLayout.OfFloat
Packages that use ValueLayout.OfFloat
Package
Description
Classes to support low-level and efficient foreign memory/function access, directly from Java.
-
Uses of ValueLayout.OfFloat in jdk.incubator.foreign
Fields in jdk.incubator.foreign declared as ValueLayout.OfFloatModifier and TypeFieldDescriptionstatic final ValueLayout.OfFloatValueLayout.JAVA_FLOATA value layout constant whose size is the same as that of a Javafloat, bit alignment set to 8, and byte order set toByteOrder.nativeOrder().Methods in jdk.incubator.foreign that return ValueLayout.OfFloatMethods in jdk.incubator.foreign with parameters of type ValueLayout.OfFloatModifier and TypeMethodDescriptiondefault MemorySegmentSegmentAllocator.allocate(ValueLayout.OfFloat layout, float value) Allocate a memory segment with given layout and initialize it with given float value.default MemorySegmentSegmentAllocator.allocateArray(ValueLayout.OfFloat elementLayout, float[] array) Allocate a memory segment with given layout and initialize it with given float array.floatMemoryAddress.get(ValueLayout.OfFloat layout, long offset) Reads a float from this address and offset with given layout.default floatMemorySegment.get(ValueLayout.OfFloat layout, long offset) Reads a float from this segment and offset with given layout.floatMemoryAddress.getAtIndex(ValueLayout.OfFloat layout, long index) Reads a float from this address and index, scaled by given layout size.default floatMemorySegment.getAtIndex(ValueLayout.OfFloat layout, long index) Reads a float from this segment and index, scaled by given layout size.voidMemoryAddress.set(ValueLayout.OfFloat layout, long offset, float value) Writes a float to this address instance and offset with given layout.default voidMemorySegment.set(ValueLayout.OfFloat layout, long offset, float value) Writes a float to this segment and offset with given layout.voidMemoryAddress.setAtIndex(ValueLayout.OfFloat layout, long index, float value) Writes a float to this address instance and index, scaled by given layout size.default voidMemorySegment.setAtIndex(ValueLayout.OfFloat layout, long index, float value) Writes a float to this segment and index, scaled by given layout size.float[]MemorySegment.toArray(ValueLayout.OfFloat elementLayout) Copy the contents of this memory segment into a fresh float array.