setRegion
fun JBooleanArray.setRegion(start: Int, len: Int, buf: CArrayPointer<UByteVar>)(source)
Copies back a region of a boolean[] array from a buffer buf.
Receiver
a boolean[] Java array.
Parameters
the starting index; must be greater than or equal to zero and less than the array length.
the number of elements to be copied; must be greater than or equal to zero and start + len must be less than or equal to the array length.
the source buffer.
Throws
if one of the indexes in the region is not valid.
fun JByteArray.setRegion(start: Int, len: Int, buf: CArrayPointer<ByteVar>)(source)
Copies back a region of a byte[] array from a buffer buf.
Receiver
a byte[] Java array.
Parameters
the starting index; must be greater than or equal to zero and less than the array length.
the number of elements to be copied; must be greater than or equal to zero and start + len must be less than or equal to the array length.
the source buffer.
Throws
if one of the indexes in the region is not valid.
fun JCharArray.setRegion(start: Int, len: Int, buf: CArrayPointer<UShortVar>)(source)
Copies back a region of a char[] array from a buffer buf.
Receiver
a char[] Java array.
Parameters
the starting index; must be greater than or equal to zero and less than the array length.
the number of elements to be copied; must be greater than or equal to zero and start + len must be less than or equal to the array length.
the source buffer.
Throws
if one of the indexes in the region is not valid.
fun JShortArray.setRegion(start: Int, len: Int, buf: CArrayPointer<ShortVar>)(source)
Copies back a region of a short[] array from a buffer buf.
Receiver
a short[] Java array.
Parameters
the starting index; must be greater than or equal to zero and less than the array length.
the number of elements to be copied; must be greater than or equal to zero and start + len must be less than or equal to the array length.
the source buffer.
Throws
if one of the indexes in the region is not valid.
Copies back a region of a int[] array from a buffer buf.
Receiver
a int[] Java array.
Parameters
the starting index; must be greater than or equal to zero and less than the array length.
the number of elements to be copied; must be greater than or equal to zero and start + len must be less than or equal to the array length.
the source buffer.
Throws
if one of the indexes in the region is not valid.
Copies back a region of a long[] array from a buffer buf.
Receiver
a long[] Java array.
Parameters
the starting index; must be greater than or equal to zero and less than the array length.
the number of elements to be copied; must be greater than or equal to zero and start + len must be less than or equal to the array length.
the source buffer.
Throws
if one of the indexes in the region is not valid.
fun JFloatArray.setRegion(start: Int, len: Int, buf: CPointer<FloatVar>)(source)
Copies back a region of a float[] array from a buffer buf.
Receiver
a float[] Java array.
Parameters
the starting index; must be greater than or equal to zero and less than the array length.
the number of elements to be copied; must be greater than or equal to zero and start + len must be less than or equal to the array length.
the source buffer.
Throws
if one of the indexes in the region is not valid.
fun JDoubleArray.setRegion(start: Int, len: Int, buf: CPointer<DoubleVar>)(source)
Copies back a region of a double[] array from a buffer buf.
Receiver
a double[] Java array.
Parameters
the starting index; must be greater than or equal to zero and less than the array length.
the number of elements to be copied; must be greater than or equal to zero and start + len must be less than or equal to the array length.
the source buffer.
Throws
if one of the indexes in the region is not valid.