Crunch
A Message Definition Language for Getting Things Right
Loading...
Searching...
No Matches
Crunch::serdes::detail Namespace Reference

TLV Serialization Policy. More...

Classes

struct  ext
 Helper to extract the underlying scalar type from a field wrapper. More...
 
struct  ext< T >
 

Detailed Description

TLV Serialization Policy.

Implements a Tag-Length-Value serialization format where:

  • Fields are identified by Field ID and Wire Type.
  • Integers/Floats/Bool are encoded as Varints.
  • Strings, Nested Messages, and Packed Arrays are LengthDelimited.
  • The top-level message body is length-prefixed (4 bytes) to handle buffer padding.