Annotation Interface Out
Configures an array parameter as an out-parameter. For an out-parameter, the array value is
copied over the boundary from a called method. It may be combined with
In for in-out
parameters. Example showing the configuration for
OutputStream.write(byte[], int, int).
@Override public abstract int read(@Out(arrayOffsetParameter = "off", arrayLengthParameter = "len", trimToResult = true) byte[] b, int off, int len);
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionLimits copying only to many of the elements given by thearrayLengthParameterparameter.Copy only a part of the array starting at offset given by thearrayOffsetParametermethod parameter.booleanLimits copying only to method result number of elements.
-
Element Details
-
arrayOffsetParameter
String arrayOffsetParameterCopy only a part of the array starting at offset given by thearrayOffsetParametermethod parameter. By default, the whole array is copied. ThearrayOffsetParametercan be used to improve the performance and copy only a part of the array over the boundary.- Default:
""
-
arrayLengthParameter
String arrayLengthParameterLimits copying only to many of the elements given by thearrayLengthParameterparameter. By default, the whole array is copied. ThearrayLengthParametercan be used to improve the performance and copy only a part of the array over the boundary.- Default:
""
-
trimToResult
boolean trimToResultLimits copying only to method result number of elements. It can be used to further limit the number of copied elements in addition toarrayLengthParameter(). When used, it's still good to specifyarrayLengthParameter()as an upper bound to limit allocated array size.- Default:
false
-