From a2d6af70f8b6ff7003a9ef9a23aff2bae744246d Mon Sep 17 00:00:00 2001 From: Mira Grudzinska Date: Fri, 16 Aug 2024 13:41:24 +0200 Subject: [PATCH] docs: description++ --- inc/thorvg.h | 2 +- src/bindings/capi/thorvg_capi.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/thorvg.h b/inc/thorvg.h index fe96ffe1..b15e9631 100644 --- a/inc/thorvg.h +++ b/inc/thorvg.h @@ -1263,7 +1263,7 @@ public: * when the @p copy has @c false. This means that loading the same data again will not result in duplicate operations * for the sharable @p data. Instead, ThorVG will reuse the previously loaded picture data. * - * @param[in] data A pointer to a memory location where the content of the picture file is stored. + * @param[in] data A pointer to a memory location where the content of the picture file is stored. A null-terminated string is expected for non-binary data if @p copy is @c false. * @param[in] size The size in bytes of the memory occupied by the @p data. * @param[in] mimeType Mimetype or extension of data such as "jpg", "jpeg", "lottie", "svg", "svg+xml", "png", etc. In case an empty string or an unknown type is provided, the loaders will be tried one by one. * @param[in] copy If @c true the data are copied into the engine local buffer, otherwise they are not. diff --git a/src/bindings/capi/thorvg_capi.h b/src/bindings/capi/thorvg_capi.h index 25fba0ba..ac4fbd73 100644 --- a/src/bindings/capi/thorvg_capi.h +++ b/src/bindings/capi/thorvg_capi.h @@ -2025,7 +2025,7 @@ TVG_API Tvg_Result tvg_picture_load_raw(Tvg_Paint* paint, uint32_t *data, uint32 * for the sharable @p data. Instead, ThorVG will reuse the previously loaded picture data. * * \param[in] paint A Tvg_Paint pointer to the picture object. -* \param[in] data A pointer to a memory location where the content of the picture file is stored. +* \param[in] data A pointer to a memory location where the content of the picture file is stored. A null-terminated string is expected for non-binary data if @p copy is @c false * \param[in] size The size in bytes of the memory occupied by the @p data. * \param[in] mimetype Mimetype or extension of data such as "jpg", "jpeg", "svg", "svg+xml", "lottie", "png", etc. In case an empty string or an unknown type is provided, the loaders will be tried one by one. * \param[in] copy If @c true the data are copied into the engine local buffer, otherwise they are not.