# win_array_to_buf_32()

Copies 32-bit data from an array into a Windows memory buffer.

## Prototype

win_array_to_buf_32(data_array, memhandle, first_point, count)

## Parameters

data_array (POINTER(c_ushort))

The C array containing the data to be copied

memhandle (int)

This must be a memory handle that was returned by win_buf_alloc_32() when the buffer was allocated. The data will be copied into this buffer.

first_point (int)

Index of the first point in the memory buffer where data will be copied to.

count (int)

Number of data points to copy.

## Notes

- This function copies data from an array to a Windows global memory buffer. This would typically be used to initialize the buffer with data before doing an output scan. Using the first_point and count parameters it is possible to fill a portion of the buffer. This can be useful if you want to send new data to the buffer after a BACKGROUND + CONTINUOUS output scan has been started – for example, during circular buffering.