Lines Matching refs:messageLen
33 size_t messageLen = strlen(message); in writeMessage() local
34 if (messageLen == 0) return; in writeMessage()
36 messageLen += 1; // Also count in the null terminator. in writeMessage()
38 if (messageLen >= messageBufferSize) { in writeMessage()
39 snprintf(buffer, sizeof(buffer), "!!! Message too long: %zu bytes !!!", messageLen); in writeMessage()
41 messageLen = strlen(message); in writeMessage()
45 if (wrappedWritePos + messageLen >= messageBufferSize) { in writeMessage()
52 memcpy(messageBuffer + wrappedWritePos, message, messageLen); in writeMessage()
53 lastWritePos += messageLen; in writeMessage()
103 size_t messageLen = strlen(messageBufferCopy + (readPos % messageBufferSize)); in getRecentMessagesForJava() local
104 if (messageLen != 0) { in getRecentMessagesForJava()
105 readPos += messageLen + 1; in getRecentMessagesForJava()