pub fn decode_and_render(
buf: &[u8],
schema: Option<&ParsedSchema>,
annotations: bool,
indent_size: usize,
expand_any: bool,
) -> Vec<u8> ⓘExpand description
Decode raw protobuf binary and render as protoc-style text in one pass.
Writes field lines into a pre-allocated Vec<u8>. When annotations is
true, a #@ prototext: protoc\n header is prepended; without annotations
the header is omitted (encode is not possible without field annotations
regardless).
Parameters mirror format_as_text in lib.rs.