- Enclosing interface:
VaList
public static sealed interface VaList.Builder
A builder interface used to construct a variable argument list.
Unless otherwise specified, passing a null argument, or an array argument containing one or more null
elements to a method in this class causes a NullPointerException to be thrown.
-
Method Summary
Modifier and TypeMethodDescriptionaddVarg(GroupLayout layout, MemorySegment value) Writes aMemorySegmentvalue, with given layout, to the variable argument list being constructed.addVarg(ValueLayout.OfAddress layout, Addressable value) Writes anAddressablevalue to the variable argument list being constructed.addVarg(ValueLayout.OfDouble layout, double value) Writes adoublevalue to the variable argument list being constructed.addVarg(ValueLayout.OfInt layout, int value) Writes anintvalue to the variable argument list being constructed.addVarg(ValueLayout.OfLong layout, long value) Writes alongvalue to the variable argument list being constructed.
-
Method Details
-
addVarg
Writes anintvalue to the variable argument list being constructed.- Parameters:
layout- the layout of the value to be written.value- theintvalue to be written.- Returns:
- this builder.
-
addVarg
Writes alongvalue to the variable argument list being constructed.- Parameters:
layout- the layout of the value to be written.value- thelongvalue to be written.- Returns:
- this builder.
-
addVarg
Writes adoublevalue to the variable argument list being constructed.- Parameters:
layout- the layout of the value to be written.value- thedoublevalue to be written.- Returns:
- this builder.
-
addVarg
Writes anAddressablevalue to the variable argument list being constructed.- Parameters:
layout- the layout of the value to be written.value- theAddressablevalue to be written.- Returns:
- this builder.
-
addVarg
Writes aMemorySegmentvalue, with given layout, to the variable argument list being constructed.- Parameters:
layout- the layout of the value to be written.value- theMemorySegmentwhose contents will be copied.- Returns:
- this builder.
-