| ... | @@ -859,8 +859,10 @@ pub fn streamDelimiter(r: *Reader, w: *Writer, delimiter: u8) StreamError!usize | ... | @@ -859,8 +859,10 @@ pub fn streamDelimiter(r: *Reader, w: *Writer, delimiter: u8) StreamError!usize |
| 859 | /// Appends to `w` contents by reading from the stream until `delimiter` is found. | 859 | /// Appends to `w` contents by reading from the stream until `delimiter` is found. |
| 860 | /// Does not write the delimiter itself. | 860 | /// Does not write the delimiter itself. |
| 861 | /// | 861 | /// |
| 862 | /// Returns number of bytes streamed, which may be zero. End of stream can be | 862 | /// Returns number of bytes streamed, which may be zero. If the stream reaches |
| 863 | /// detected by checking if the next byte in the stream is the delimiter. | 863 | /// the end, the reader buffer will be empty when this function returns. |
| | 864 | /// Otherwise, it will have at least one byte buffered, starting with the |
| | 865 | /// delimiter. |
| 864 | /// | 866 | /// |
| 865 | /// Asserts buffer capacity of at least one. This function performs better with | 867 | /// Asserts buffer capacity of at least one. This function performs better with |
| 866 | /// larger buffers. | 868 | /// larger buffers. |