Table of Contents

Interface IProtobufDecoder

Namespace
Fluxzy.Formatters
Assembly
Fluxzy.Core.dll

Decodes raw protobuf message bytes into a human-readable text representation. Implement this interface to provide custom protobuf decoding without requiring the protoc CLI tool on PATH.

public interface IProtobufDecoder

Examples

Using a delegate:

formatSettings.ProtobufDecoder = ProtobufDecoder.Create(context => {
    // Your custom decoding logic here
    return decodedText;
});

Methods

TryDecode(ProtobufDecodeContext)

Attempts to decode a protobuf message into a human-readable text representation.

string? TryDecode(ProtobufDecodeContext context)

Parameters

context ProtobufDecodeContext

Context containing the raw message bytes and gRPC metadata.

Returns

string

A decoded text representation of the message, or null if decoding is not possible.