Kriskras99 commented on code in PR #201:
URL: https://github.com/apache/avro-rs/pull/201#discussion_r2113590472
##########
avro/src/writer.rs:
##########
@@ -343,14 +343,22 @@ impl<'a, W: Write> Writer<'a, W> {
/// Return what the `Writer` is writing to, consuming the `Writer` itself.
///
- /// **NOTE** This function forces the written data to be flushed (an
implicit
- /// call to [`flush`](struct.Writer.html#method.flush) is performed).
+ /// **NOTE**: This function forces the written data to be flushed (an
implicit
+ /// call to [`flush`](Writer::flush) is performed).
pub fn into_inner(mut self) -> AvroResult<W> {
self.maybe_write_header()?;
self.flush()?;
Ok(self.writer)
}
+ /// Peek at what the `Writer` is writing to.
+ ///
+ /// **NOTE**: There is likely data still in the buffer. To have all the
data
+ /// in the writer call [`flush`](Writer::flush) first.
+ pub fn peek_inner(&self) -> &W {
Review Comment:
You're right, renamed!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]