Uses of Interface
java.lang.foreign.ValueLayout.OfByte
Packages that use ValueLayout.OfBytePREVIEW
Package
Description
Provides low-level access to memory and functions outside the Java runtime.
-
Uses of ValueLayout.OfBytePREVIEW in java.lang.foreignPREVIEW
Fields in java.lang.foreignPREVIEW declared as ValueLayout.OfBytePREVIEWModifier and TypeFieldDescriptionstatic final ValueLayout.OfBytePREVIEWValueLayout.JAVA_BYTEA value layout constant whose size is the same as that of a Javabyte, byte alignment set to 1, and byte order set toByteOrder.nativeOrder().Methods in java.lang.foreignPREVIEW that return ValueLayout.OfBytePREVIEWModifier and TypeMethodDescriptionValueLayout.OfByte.withByteAlignment(long byteAlignment) Returns a memory layout with the same characteristics as this layout, but with the given alignment constraint (in bytes).Returns a memory layout with the same characteristics as this layout, but with the given name.Returns a value layout with the same characteristics as this layout, but with the given byte order.ValueLayout.OfByte.withoutName()Returns a memory layout with the same characteristics as this layout, but with no name.Methods in java.lang.foreignPREVIEW with parameters of type ValueLayout.OfBytePREVIEWModifier and TypeMethodDescriptiondefault MemorySegmentPREVIEWSegmentAllocator.allocate(ValueLayout.OfBytePREVIEW layout, byte value) Returns a new memory segment initialized with the providedbytevalueas specified by the providedlayout(i.e. byte ordering, alignment and size).default MemorySegmentPREVIEWSegmentAllocator.allocateArray(ValueLayout.OfBytePREVIEW elementLayout, byte... elements) Returns a new memory segment with a byteSize()PREVIEW ofE*layout.byteSize()initialized with the providedEbyteelementsas specified by the providedlayout(i.e. byte ordering, alignment and size).default byteMemorySegment.get(ValueLayout.OfBytePREVIEW layout, long offset) Reads a byte from this segment at the given offset, with the given layout.default byteMemorySegment.getAtIndex(ValueLayout.OfBytePREVIEW layout, long index) Reads a byte from this segment at the given index, scaled by the given layout size.default voidMemorySegment.set(ValueLayout.OfBytePREVIEW layout, long offset, byte value) Writes a byte into this segment at the given offset, with the given layout.default voidMemorySegment.setAtIndex(ValueLayout.OfBytePREVIEW layout, long index, byte value) Writes a byte into this segment at the given index, scaled by the given layout size.byte[]MemorySegment.toArray(ValueLayout.OfBytePREVIEW elementLayout) Copy the contents of this memory segment into a new byte array.