mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-27 04:09:31 +03:00
internal.h: fixed doxy for read buffer
MHD always zero-terminate by replacing end-of-line chars and never zero-terminate by write char after valid read position. Read buffer is NOT longer. 'read_buffer_offset' actually determines the first INVALID position.
This commit is contained in:
@@ -1072,16 +1072,15 @@ struct MHD_Connection
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Size of @e read_buffer (in bytes). This value indicates
|
||||
* how many bytes we're willing to read into the buffer;
|
||||
* the real buffer is one byte longer to allow for
|
||||
* adding zero-termination (when needed).
|
||||
* Size of @e read_buffer (in bytes).
|
||||
* This value indicates how many bytes we're willing to read
|
||||
* into the buffer.
|
||||
*/
|
||||
size_t read_buffer_size;
|
||||
|
||||
/**
|
||||
* Position where we currently append data in
|
||||
* @e read_buffer (last valid position).
|
||||
* Position where we currently append data in @e read_buffer (the
|
||||
* next char after the last valid position).
|
||||
*/
|
||||
size_t read_buffer_offset;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user