| ... | @@ -957,8 +957,8 @@ pub fn peekDelimiterExclusive(r: *Reader, delimiter: u8) DelimiterError![]u8 { | ... | @@ -957,8 +957,8 @@ pub fn peekDelimiterExclusive(r: *Reader, delimiter: u8) DelimiterError![]u8 { |
| 957 | return result[0 .. result.len - 1]; | 957 | return result[0 .. result.len - 1]; |
| 958 | } | 958 | } |
| 959 | | 959 | |
| 960 | /// Appends to `w` contents by reading from the stream until `delimiter` is | 960 | /// Appends to `w` contents by reading from the stream until `delimiter` is found. |
| 961 | /// found. Does not write the delimiter itself. | 961 | /// Does not write the delimiter itself. |
| 962 | /// | 962 | /// |
| 963 | /// Does not discard the delimiter from the `Reader`. | 963 | /// Does not discard the delimiter from the `Reader`. |
| 964 | /// | 964 | /// |
| ... | @@ -983,6 +983,8 @@ pub fn streamDelimiter(r: *Reader, w: *Writer, delimiter: u8) StreamError!usize | ... | @@ -983,6 +983,8 @@ pub fn streamDelimiter(r: *Reader, w: *Writer, delimiter: u8) StreamError!usize |
| 983 | /// Appends to `w` contents by reading from the stream until `delimiter` is found. | 983 | /// Appends to `w` contents by reading from the stream until `delimiter` is found. |
| 984 | /// Does not write the delimiter itself. | 984 | /// Does not write the delimiter itself. |
| 985 | /// | 985 | /// |
| | 986 | /// Does not discard the delimiter from the `Reader`. |
| | 987 | /// |
| 986 | /// Returns number of bytes streamed, which may be zero. If the stream reaches | 988 | /// Returns number of bytes streamed, which may be zero. If the stream reaches |
| 987 | /// the end, the reader buffer will be empty when this function returns. | 989 | /// the end, the reader buffer will be empty when this function returns. |
| 988 | /// Otherwise, it will have at least one byte buffered, starting with the | 990 | /// Otherwise, it will have at least one byte buffered, starting with the |