pub unsafe extern "C" fn SoapySDRDevice_acquireReadBuffer(
    device: *mut SoapySDRDevice,
    stream: *mut SoapySDRStream,
    handle: *mut usize,
    buffs: *mut *const c_void,
    flags: *mut c_int,
    timeNs: *mut c_longlong,
    timeoutUs: c_long
) -> c_int
Expand description

Acquire direct buffers from a receive stream. This call is part of the direct buffer access API.

The buffs array will be filled with a stream pointer for each channel. Each pointer can be read up to the number of return value elements.

The handle will be set by the implementation so that the caller may later release access to the buffers with releaseReadBuffer(). Handle represents an index into the internal scatter/gather table such that handle is between 0 and num direct buffers - 1.

\param device a pointer to a device instance \param stream the opaque pointer to a stream handle \param handle an index value used in the release() call \param buffs an array of void* buffers num chans in size \param flags optional flag indicators about the result \param timeNs the buffer’s timestamp in nanoseconds \param timeoutUs the timeout in microseconds \return the number of elements read per buffer or error code