Beispiel #1
0
func GetElementDirect(array *types.COMArray, index int64, element interface{}) error {
	return errors.MaybeError(C.SafeArrayGetElement(array, index, unsafe.Pointer(&element)))
}
Beispiel #2
0
// GetElementDirect retrieves element value at given index.
//
// AKA: SafeArrayGetElement in Windows API.
func GetElementDirect(safearray *COMArray, index int64, element interface{}) error {
	return com.MaybeError(C.SafeArrayGetElement(safearray, index, unsafe.Pointer(&element)))
}