pub fn render_as_text(
data: &[u8],
schema: Option<&ParsedSchema>,
opts: RenderOpts,
) -> Result<Vec<u8>, CodecError>Expand description
Decode a raw protobuf binary payload and render it as protoc-style text.
When opts.assume_binary is false and the data already carries the
#@ prototext: header, the bytes are returned unchanged (zero-copy fast
path).