pub unsafe extern "C" fn OH_ArkUI_MarshallStyledStringDescriptor(
buffer: *mut u8,
bufferSize: usize,
descriptor: *mut ArkUI_StyledString_Descriptor,
resultSize: *mut usize,
) -> i32Available on crate features
api-12 and api-14 only.Expand description
Serializes the styled string information into a byte array.
§Arguments
-
buffer- Byte array where the serialized data will be stored. -
bufferSize- Length of the byte array. -
descriptor- Pointer to an ArkUI_StyledString_Descriptor object. -
resultSize- Actual length of the byte array.
§Returns
- Returns the result code.
Returns [
ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. Returns [ARKUI_ERROR_CODE_PARAM_INVALID] if a parameter error occurs. Returns [ARKUI_ERROR_CODE_INVALID_STYLED_STRING] if the styled string is invalid.
Available since API-level: 14