Top Constructors Methods
com.sun.jna.platform.win32

public abstract Class OaIdlUtil

extends Object
Class Inheritance
Imports
com.sun.jna.Pointer, com.sun.jna.platform.win32.OaIdl.DATE, .OaIdl.SAFEARRAY, .Variant.VARIANT, .WTypes.BSTR, .WinDef.SCODE, java.lang.reflect.Array

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static Object

Returns:

Java array corresponding to the given SAFEARRAY
toPrimitiveArray
(OaIdl.SAFEARRAY
SAFEARRAY to convert
sa
,
boolean
if true the supplied SAFEARRAY is destroyed, there must not be additional locks on the array!
destruct
)

Read SAFEARRAY into a java array.

private static void
toPrimitiveArray(Object dataArray, Object targetArray, int[] elements, int[] cumElements, int varType, int[] currentIdx)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

OaIdlUtilback to summary
public OaIdlUtil()

Method Detail

toPrimitiveArrayback to summary
public static Object toPrimitiveArray(OaIdl.SAFEARRAY sa, boolean destruct)

Read SAFEARRAY into a java array. Not all VARTYPEs are supported!

Supported types:

  • VT_BOOL
  • VT_UI1
  • VT_I1
  • VT_UI2
  • VT_I2
  • VT_UI4
  • VT_UINT
  • VT_I4
  • VT_INT
  • VT_ERROR
  • VT_R4
  • VT_R8
  • VT_DATE
  • VT_BSTR
  • VT_VARIANT (Onle the following VARTYPES):
    • VT_EMPTY (converted to NULL)
    • VT_NULL
    • VT_BOOL
    • VT_UI1
    • VT_I1
    • VT_UI2
    • VT_I2
    • VT_UI4
    • VT_UINT
    • VT_I4
    • VT_INT
    • VT_ERROR
    • VT_R4
    • VT_R8
    • VT_DATE
    • VT_BSTR
Parameters
sa:OaIdl.SAFEARRAY

SAFEARRAY to convert

destruct:boolean

if true the supplied SAFEARRAY is destroyed, there must not be additional locks on the array!

Returns:Object

Java array corresponding to the given SAFEARRAY

toPrimitiveArrayback to summary
private static void toPrimitiveArray(Object dataArray, Object targetArray, int[] elements, int[] cumElements, int varType, int[] currentIdx)