OH_UdsArrayBuffer_SetData

Function OH_UdsArrayBuffer_SetData 

Source
pub unsafe extern "C" fn OH_UdsArrayBuffer_SetData(
    buffer: *mut OH_UdsArrayBuffer,
    data: *mut c_uchar,
    len: c_uint,
) -> c_int
Available on crate feature api-13 only.
Expand description

Set array buffer data to the OH_UdsArrayBuffer.

§Arguments

  • buffer - Represents a pointer to an instance of OH_UdsArrayBuffer.

  • data - Represents the array buffer data.

  • len - Represents the length of data param.

§Returns

  • Returns the status code of the execution. See [Udmf_ErrCode]. [UDMF_E_OK] success. [UDMF_E_INVALID_PARAM] The error code for common invalid args. OH_UdsArrayBuffer Udmf_ErrCode

Available since API-level: 13