pub unsafe extern "C" fn OH_Drawing_MemoryStreamCreate(
data: *const c_void,
length: usize,
copyData: bool,
) -> *mut OH_Drawing_MemoryStreamExpand description
@brief Creates an OH_Drawing_MemoryStream object. This API may return an error code. For details, call {@link OH_Drawing_ErrorCodeGet}. If data is NULL or length is 0, OH_DRAWING_ERROR_INVALID_PARAMETER is returned.
@return Returns the pointer to the {@link OH_Drawing_MemoryStream} object created. @param data Pointer to the data. @param length Length of the data. @param copyData Whether to copy data. The value true means that the OH_Drawing_MemoryStream object copies the data, and false means that the OH_Drawing_MemoryStream object directly uses the data without copying. @since 12 @version 1.0