@@ -4215,7 +4215,7 @@ struct OrtApi {
42154215 * If `out` is nullptr, the value of `size` is set to the size of the name
42164216 * string (including null-terminator), and a success status is returned.
42174217 *
4218- * If the `size` parameter is greater than or equal to the name string's size,
4218+ * If the `size` parameter is greater than or equal to the name string's size and `out` is not nullptr ,
42194219 * the value of `size` is set to the true size of the string (including null-terminator),
42204220 * the provided memory is filled with the string's contents, and a success status is returned.
42214221 *
@@ -4231,7 +4231,7 @@ struct OrtApi {
42314231 * \snippet{doc} snippets.dox OrtStatus Return Value
42324232 * \since Version 1.14
42334233 */
4234- ORT_API2_STATUS (KernelInfo_GetInputName, _In_ const OrtKernelInfo* info, size_t index, _Out_ char * out,
4234+ ORT_API2_STATUS (KernelInfo_GetInputName, _In_ const OrtKernelInfo* info, size_t index, _Out_opt_ char * out,
42354235 _Inout_ size_t * size);
42364236
42374237 /* * \brief Get the name of a ::OrtKernelInfo's output.
@@ -4242,7 +4242,7 @@ struct OrtApi {
42424242 * If `out` is nullptr, the value of `size` is set to the size of the name
42434243 * string (including null-terminator), and a success status is returned.
42444244 *
4245- * If the `size` parameter is greater than or equal to the name string's size,
4245+ * If the `size` parameter is greater than or equal to the name string's size and `out` is not nullptr ,
42464246 * the value of `size` is set to the true size of the string (including null-terminator),
42474247 * the provided memory is filled with the string's contents, and a success status is returned.
42484248 *
@@ -4259,7 +4259,7 @@ struct OrtApi {
42594259 * \snippet{doc} snippets.dox OrtStatus Return Value
42604260 * \since Version 1.14
42614261 */
4262- ORT_API2_STATUS (KernelInfo_GetOutputName, _In_ const OrtKernelInfo* info, size_t index, _Out_ char * out,
4262+ ORT_API2_STATUS (KernelInfo_GetOutputName, _In_ const OrtKernelInfo* info, size_t index, _Out_opt_ char * out,
42634263 _Inout_ size_t * size);
42644264
42654265 /* * \brief Get the type information for a ::OrtKernelInfo's input.
@@ -4439,7 +4439,7 @@ struct OrtApi {
44394439 * If `out` is nullptr, the value of `size` is set to the size of the name
44404440 * string (including null-terminator), and a success status is returned.
44414441 *
4442- * If the `size` parameter is greater than or equal to the name string's size,
4442+ * If the `size` parameter is greater than or equal to the name string's size and `out` is not nullptr ,
44434443 * the value of `size` is set to the true size of the string (including null-terminator),
44444444 * the provided memory is filled with the string's contents, and a success status is returned.
44454445 *
@@ -4456,7 +4456,7 @@ struct OrtApi {
44564456 * \snippet{doc} snippets.dox OrtStatus Return Value
44574457 * \since Version 1.15
44584458 */
4459- ORT_API2_STATUS (KernelInfo_GetNodeName, _In_ const OrtKernelInfo* info, _Out_ char * out, _Inout_ size_t * size);
4459+ ORT_API2_STATUS (KernelInfo_GetNodeName, _In_ const OrtKernelInfo* info, _Out_opt_ char * out, _Inout_ size_t * size);
44604460
44614461 /* * \brief Get the session logger from ::OrtKernelInfo.
44624462 *
@@ -6620,7 +6620,67 @@ struct OrtApi {
66206620 */
66216621 ORT_API2_STATUS (KernelInfo_GetConfigEntries, _In_ const OrtKernelInfo* info, _Outptr_ OrtKeyValuePairs** out);
66226622
6623- /* * \brief Get the list of available hardware devices.
6623+ // / @}
6624+ /* * \brief Get the graph node's operator domain from ::OrtKernelInfo.
6625+ *
6626+ * If `out` is nullptr, the value of `size` is set to the size of the operator domain
6627+ * string (including null-terminator), and a success status is returned.
6628+ *
6629+ * If the `size` parameter is greater than or equal to the string's size and `out` is not nullptr,
6630+ * the value of `size` is set to the true size of the string (including null-terminator),
6631+ * the provided memory is filled with the string's contents, and a success status is returned.
6632+ *
6633+ * If the `size` parameter is less than the actual string's size and `out`
6634+ * is not nullptr, the value of `size` is set to the true size of the string
6635+ * and a failure status with error code ORT_INVALID_ARGUMENT is returned.
6636+ *
6637+ * \param[in] info An instance of ::OrtKernelInfo.
6638+ * \param[out] out Memory location into which to write the UTF-8 null-terminated string representing the
6639+ * operator domain.
6640+ * \param[in,out] size Pointer to the size of the `out` buffer. See above comments for details.
6641+ *
6642+ * \snippet{doc} snippets.dox OrtStatus Return Value
6643+ * \since Version 1.24
6644+ */
6645+ ORT_API2_STATUS (KernelInfo_GetOperatorDomain, _In_ const OrtKernelInfo* info, _Out_opt_ char * out,
6646+ _Inout_ size_t * size);
6647+
6648+ /* * \brief Get the graph node's operator type from ::OrtKernelInfo.
6649+ *
6650+ * If `out` is nullptr, the value of `size` is set to the size of the operator type
6651+ * string (including null-terminator), and a success status is returned.
6652+ *
6653+ * If the `size` parameter is greater than or equal to the string's size and `out` is not nullptr,
6654+ * the value of `size` is set to the true size of the string (including null-terminator),
6655+ * the provided memory is filled with the string's contents, and a success status is returned.
6656+ *
6657+ * If the `size` parameter is less than the actual string's size and `out`
6658+ * is not nullptr, the value of `size` is set to the true size of the string
6659+ * and a failure status with error code ORT_INVALID_ARGUMENT is returned.
6660+ *
6661+ * \param[in] info An instance of ::OrtKernelInfo.
6662+ * \param[out] out Memory location into which to write the UTF-8 null-terminated string representing the
6663+ * operator type.
6664+ * \param[in,out] size Pointer to the size of the `out` buffer. See above comments for details.
6665+ *
6666+ * \snippet{doc} snippets.dox OrtStatus Return Value
6667+ * \since Version 1.24
6668+ */
6669+ ORT_API2_STATUS (KernelInfo_GetOperatorType, _In_ const OrtKernelInfo* info, _Out_opt_ char * out,
6670+ _Inout_ size_t * size);
6671+
6672+ /* * \brief Get the opset version in which the given node's operator type was first defined from ::OrtKernelInfo.
6673+ *
6674+ * \param[in] info An instance of ::OrtKernelInfo.
6675+ * \param[out] since_version The opset version in which the node's operator type was first defined.
6676+ *
6677+ * \snippet{doc} snippets.dox OrtStatus Return Value
6678+ * \since Version 1.24
6679+ */
6680+ ORT_API2_STATUS (KernelInfo_GetOperatorSinceVersion, _In_ const OrtKernelInfo* info,
6681+ _Out_ int * since_version);
6682+
6683+ /* * \brief Get the list of available hardware devices.
66246684 *
66256685 * Enumerates hardware devices available on the system. Device discovery results
66266686 * are stored in the ORT environment.
0 commit comments