Skip to content

Commit ea004a8

Browse files
authored
Update backend_common.h
1 parent 64be246 commit ea004a8

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

include/triton/backend/backend_common.h

+12-8
Original file line numberDiff line numberDiff line change
@@ -672,14 +672,18 @@ TRITONSERVER_Error* BufferAsTypedString(
672672
/// \return a formatted string for logging the request ID.
673673
std::string GetRequestId(TRITONBACKEND_Request* request);
674674

675-
/// Validate the contiguous string buffer with correct format and parse string elements into list of pairs of memory address and length. Note the returned list of pairs points to valid memory as long as memory pointed by buffer remains allocated.
676-
/// <int32_len><bytes>...<int32_len><bytes>.
677-
/// @param buffer The pointer to the contiguous string buffer.
678-
/// @param buffer_byte_size The size of the buffer in bytes.
679-
/// @param expected_element_cnt The number of expected string elements.
680-
/// @param input_name The name of the input buffer.
681-
/// @param str_list Returns pairs of address and length of parsed strings.
682-
/// @return a TRITONSERVER_Error indicating success or failure.
675+
/// Validate the contiguous string buffer with correct format
676+
/// <int32_len><bytes>...<int32_len><bytes> and parse string
677+
/// elements into list of pairs of memory address and length.
678+
/// Note the returned list of pairs points to valid memory as long
679+
/// as memory pointed by buffer remains allocated.
680+
///
681+
/// \param buffer The pointer to the contiguous string buffer.
682+
/// \param buffer_byte_size The size of the buffer in bytes.
683+
/// \param expected_element_cnt The number of expected string elements.
684+
/// \param input_name The name of the input buffer.
685+
/// \param str_list Returns pairs of address and length of parsed strings.
686+
/// \return a TRITONSERVER_Error indicating success or failure.
683687
TRITONSERVER_Error* ValidateStringBuffer(
684688
const char* buffer, size_t buffer_byte_size,
685689
const size_t expected_element_cnt, const char* input_name,

0 commit comments

Comments
 (0)