Skip to content

Protobuf extension#

The MAT.OCS.Streaming.Codecs.Protobuf package provides a faster, more-compact serialization for telemetry data and samples. Prefer this codec when working with large topics.

Enabling the Codec#

Enabling in your code#

Bring the package into your project using NuGet.

To register the codec to parse incoming data, call:\ ProtobufCodecs.RegisterCodecs();

To use the codec by default to both send and receive data, call:\ ProtobufCodecs.RegisterCodecs(true);


Use the IDL (attached to this page) to generate a parser in a wide range of languages.

For more information, see