Kriskras99 opened a new pull request, #201: URL: https://github.com/apache/avro-rs/pull/201
This can be useful for checking the size of the output. For example, you might want to batch values every N megabytes. I decided not to add a `peek_inner_mut` method, as it has no usecase I can think of and allows the user to easily corrupt the Avro message. I've also added two commits, one which simplifies the doc comments and one which makes the `WriterBuilder` type public. The alternative to `peek_inner` is doing: - `let aw = Writer::builder().schema(schema).marker(marker).writer(writer)` - `aw.append_ser(value)` - `writer = aw.into_inner()` - `writer.len()` - `aw = Writer::append_to(schema, writer, marker)` And this recreates the writer every time, which does a bunch of allocations. -- 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: dev-unsubscr...@avro.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org