Ver Fonte

Mention negative size returned on string for rtcReceiveMessage()

David Eichmann há 3 anos atrás
pai
commit
f6dd669f18
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      DOC.md

+ 1 - 1
DOC.md

@@ -508,7 +508,7 @@ Arguments:
 
 - `id`: the channel identifier
 - `buffer`: a user-supplied buffer where to write the message data
-- `size`: a pointer to a user-supplied int which must be initialized to the size of `buffer`. On success, the function will write the size of the message to it before returning.
+- `size`: a pointer to a user-supplied int which must be initialized to the size of `buffer`. On success, the function will write the size of the message to it before returning (positive size if binary, negative size including terminating 0 if string).
 
 Return value: `RTC_ERR_SUCCESS` or a negative error code (In particular, `RTC_ERR_NOT_AVAIL` is returned when there are no pending messages)