pike.git / src / modules / _Stdio / buffer.cmod

version» Context lines:

pike.git/src/modules/_Stdio/buffer.cmod:280:    *! The default implementation simply returns @expr{0@} (zero).    *!    *! Override this function to change the behavior.    *!    *! @param howmuch    *! The argument @[howmuch] indicates how much data is needed:    *!    *! @int    *! @value 1..    *! Need @[howmuch] bytes more -  *! @value 0 howmuch +  *! @value 0    *! The amount of data needed is not certain.    *! This most often happens when @[sscanf] or @[read_json] is used    *! @value ..-1    *! Tried to @[unread] -@[howmuch] bytes. There is usually no way to satisfy    *! the requested range.    *!    *! The only supported way is to extract the data from the buffer,    *! add the requested amount of "go backbuffer", add the data    *! back, and forward -@[howmuch] bytes.    *! @endint