pub unsafe extern "C" fn OH_ImageSourceNative_CreateFromData(
data: *mut u8,
dataSize: usize,
res: *mut *mut OH_ImageSourceNative,
) -> ImageResultAvailable on crate features
api-12 and image-source only.Expand description
Creates an void pointer
§Arguments
-
data- Indicates a pointer to the image source data. Only a formatted packet data or Base64 data is accepted. -
dataSize- Indicates the size of the image source data. -
res- Indicates a void pointer to the ImageSource object created at the C++ native layer.
§Returns
- Returns [
Image_ErrorCode]
Available since API-level: 12