setRegion

context(env: JniEnv)
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

start

the starting index; must be greater than or equal to zero and less than the array length.

len

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.

buf

the source buffer.

Throws

if one of the indexes in the region is not valid.


context(env: JniEnv)
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

start

the starting index; must be greater than or equal to zero and less than the array length.

len

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.

buf

the source buffer.

Throws

if one of the indexes in the region is not valid.


context(env: JniEnv)
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

start

the starting index; must be greater than or equal to zero and less than the array length.

len

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.

buf

the source buffer.

Throws

if one of the indexes in the region is not valid.


context(env: JniEnv)
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

start

the starting index; must be greater than or equal to zero and less than the array length.

len

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.

buf

the source buffer.

Throws

if one of the indexes in the region is not valid.


context(env: JniEnv)
fun JIntArray.setRegion(start: Int, len: Int, buf: CPointer<IntVar>)(source)

Copies back a region of a int[] array from a buffer buf.

Receiver

a int[] Java array.

Parameters

start

the starting index; must be greater than or equal to zero and less than the array length.

len

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.

buf

the source buffer.

Throws

if one of the indexes in the region is not valid.


context(env: JniEnv)
fun JLongArray.setRegion(start: Int, len: Int, buf: CPointer<LongVar>)(source)

Copies back a region of a long[] array from a buffer buf.

Receiver

a long[] Java array.

Parameters

start

the starting index; must be greater than or equal to zero and less than the array length.

len

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.

buf

the source buffer.

Throws

if one of the indexes in the region is not valid.


context(env: JniEnv)
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

start

the starting index; must be greater than or equal to zero and less than the array length.

len

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.

buf

the source buffer.

Throws

if one of the indexes in the region is not valid.


context(env: JniEnv)
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

start

the starting index; must be greater than or equal to zero and less than the array length.

len

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.

buf

the source buffer.

Throws

if one of the indexes in the region is not valid.