Microsoft SDK for Java

copy

The copy method of the DllLib class contains the following signatures:

copy(byte jasrc[], int elemidx, int pdst, int nelems)
copy(char jasrc[], int elemidx, int pdst, int nelems)
copy(short jasrc[], int elemidx, int pdst, int nelems)
copy(int jasrc[], int elemidx, int pdst, int nelems)
copy(long jasrc[], int elemidx, int pdst, int nelems)
copy(float jasrc[], int elemidx, int pdst, int nelems)
copy(double jasrc[], int elemidx, int pdst, int nelems)
copy(Object jasrc, int ofs, int pdst, int cb)
copy(int psrc, byte jadst[], int elemidx, int nelems)
copy(int psrc, char jadst[], int elemidx, int nelems)
copy(int psrc, short jadst[], int elemidx, int nelems)
copy(int psrc, int jadst[], int elemidx, int nelems)
copy(int psrc, long jadst[], int elemidx, int nelems)
copy(int psrc, float jadst[], int elemidx, int nelems)
copy(int psrc, double jadst[], int elemidx, int nelems)
copy(int psrc, Object jadst, int ofs, int cb)

copy(byte jasrc[], int elemidx, int pdst, int nelems)

Copies a number of bytes from a Java array to the destination indicated by a raw native pointer. This copy method is range-checked.

Syntax

public static void copy(byte jasrc[], int elemidx, int pdst, int nelems);

Parameters

jasrc The Java array to copy bytes from.
elemidx The offset that indicates the location in the Java array where the first byte to be copied is located.
pdst A raw pointer to the destination of the copy.
nelems The number of bytes to copy.

copy(char jasrc[], int elemidx, int pdst, int nelems)

Copies a number of characters from a Java array to the destination indicated by a raw native pointer. This copy method is range-checked.

Syntax

public static void copy(char jasrc[], int elemidx, int pdst, int nelems);

Parameters

jasrc The Java array to copy the characters from.
elemidx The offset that indicates the location in the Java array where the first character to be copied is located.
pdst A raw pointer to the destination of the copy.
nelems The number of characters to copy.

copy(short jasrc[], int elemidx, int pdst, int nelems)

Copies a number of short integers from a Java array to the destination indicated by a raw native pointer. This copy method is range-checked.

Syntax

public static void copy(short jasrc[], int elemidx, int pdst, int nelems);

Parameters

jasrc The Java array to copy the short integers from.
elemidx The offset that indicates the location in the Java array where the first short integer to be copied is located.
pdst A raw pointer to the destination of the copy.
nelems The number of short integers to copy.

copy(int jasrc[], int elemidx, int pdst, int nelems)

Copies a number of integers from a Java array to the destination indicated by a raw native pointer. This copy method is range-checked.

Syntax

public static void copy(int jasrc[], int elemidx, int pdst, int nelems);

Parameters

jasrc The Java array to copy the integers from.
elemidx The offset that indicates the location in the Java array where the first integer to be copied is located.
pdst A raw pointer to the destination of the copy.
nelems The number of integers to copy.

copy(long jasrc[], int elemidx, int pdst, int nelems)

Copies a number of long integers from a Java array to the destination indicated by a raw native pointer. This copy method is range-checked.

Syntax

public static void copy(long jasrc[], int elemidx, int pdst, int nelems);

Parameters

jasrc The Java array to copy the long integers from.
elemidx The offset that indicates where in the Java array to copy the first long integer.
pdst A raw pointer to the destination of the copy.
nelems The number of long integers to copy.

copy(float jasrc[], int elemidx, int pdst, int nelems)

Copies 32-bit floating-point numbers from a Java array to the destination indicated by a raw native pointer. This copy method is range-checked.

Syntax

public static void copy(float jasrc[], int elemidx, int pdst, int nelems);

Parameters

jasrc The Java array to copy the floating-point numbers from.
elemidx The offset that indicates the location in the Java array where the first floating-point number to be copied is located.
pdst A raw pointer to the destination of the copy.
nelems The number of floating-point numbers to copy.

copy(double jasrc[], int elemidx, int pdst, int nelems)

Copies 64-bit floating-point numbers (doubles) from a Java array to the destination indicated by a raw native pointer. This copy method is range-checked.

Syntax

public static void copy(double jasrc[], int elemidx, int pdst, int nelems);

Parameters

jasrc The Java array to copy the doubles from.
elemidx The offset that indicates the location in the Java array where the first double to be copied is located.
pdst A raw pointer to the destination of the copy.
nelems The number of doubles to copy.

copy(Object jasrc, int ofs, int pdst, int cb)

Copies a native structure to the destination indicated by a raw native pointer. The Java object that represents the native structure must have been declared using the @dll.struct compiler directive.

Syntax

public static void copy(Object jasrc, int ofs, int pdst, int cb);

Parameters

jasrc The native structure to copy from.
ofs The offset that indicates where in the object the first byte to copy is located.
pdst A raw pointer to the destination of the copy.
cb The number of bytes to copy.

copy(int psrc, byte jadst[], int elemidx, int nelems)

Copies a number of bytes to a Java array from the source indicated by a raw native pointer. This copy method is range-checked.

Syntax

public static void copy(int psrc, byte jadst[], int elemidx, int nelems);

Parameters

psrc A raw pointer to the source of the copy.
jadst The Java array to copy the bytes to.
elemidx The offset that indicates the location in the Java array where the first byte is copied to.
nelems The number of bytes to copy.

copy(int psrc, char jadst[], int elemidx, int nelems)

Copies a number of characters to a Java array from the source indicated by a raw native pointer. This copy method is range-checked.

Syntax

public static void copy(int psrc, char jadst[], int elemidx, int nelems);

Parameters

psrc A raw pointer to the source of the copy.
jadst The Java array to copy the characters to.
elemidx The offset that indicates the location in the Java array where the first character is copied to.
nelems The number of characters to copy.

copy(int psrc, short jadst[], int elemidx, int nelems)

Copies a number of short integers to a Java array from the source indicated by a raw native pointer. This copy method is range-checked.

Syntax

public static void copy(int psrc, short jadst[], int elemidx, int nelems);

Parameters

psrc A raw pointer to the source of the copy.
jadst The Java array to copy the short integers to.
elemidx The offset that indicates the location in the Java array where the first short integer is copied to.
nelems The number of short integers to copy.

copy(int psrc, int jadst[], int elemidx, int nelems)

Copies a number of integers to a Java array from the source indicated by a raw native pointer. This copy method is range-checked.

Syntax

public static void copy(int psrc, int jadst[], int elemidx, int nelems);

Parameters

psrc A raw pointer to the source of the copy.
jadst The Java array to copy the integers to.
elemidx The offset that indicates the location in the Java array where the first integer is copied to.
nelems The number of integers to copy.

copy(int psrc, long jadst[], int elemidx, int nelems)

Copies a number of long integers to a Java array from the source indicated by a raw native pointer. This copy method is range-checked.

Syntax

public static void copy(int psrc, long jadst[], int elemidx, int nelems);

Parameters

psrc A raw pointer to the source of the copy.
jadst The Java array to copy the long integers to.
elemidx The offset that indicates the location in the Java array where the first long integer is copied to.
nelems The number of long integers to copy.

copy(int psrc, float jadst[], int elemidx, int nelems)

Copies 32-bit floating-point numbers to a Java array from the source indicated by a raw native pointer. This copy method is range-checked.

Syntax

public static void copy(int psrc, float jadst[], int elemidx, int nelems);

Parameters

psrc A raw pointer to the source of the copy.
jadst The Java array to copy the floats to.
elemidx The offset that indicates the location in the Java array where the first floating-point number is copied to.
nelems The number of floats to copy.

copy(int psrc, double jadst[], int elemidx, int nelems)

Copies 64-bit floating-point numbers (doubles) to a Java array from the source indicated by a raw native pointer. This copy method is range-checked.

Syntax

public static void copy(int psrc, double jadst[], int elemidx, int nelems);

Parameters

psrc A raw pointer to the source of the copy.
jadst The Java array to copy the doubles to.
elemidx The offset that indicates the location in the Java array where the first double is copied to.
nelems The number of doubles to copy.

copy(int psrc, Object jadst, int ofs, int cb)

Copies a number of bytes to a native structure from the source indicated by a raw native pointer. The Java object that represents the native structure must be declared using the @dll.struct compiler directive.

Syntax

public static void copy(int psrc, Object jadst, int ofs, int cb);

Parameters

psrc A raw pointer to the source of the copy.
jadst The native structure to copy to.
ofs The offset that indicates the location in the object where the first byte is copied to.
cb The number of bytes to copy.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.