Macros
macro serializerFor(_: type Protobuf; Types: untyped; withMetrics: bool = false; domain: string = ""): untyped {..}
- Generates public protobuf encode and T.decode helpers. Define local validateDecoded for checks protobuf cannot express. Source Edit
Templates
template trackDecodeBytes(count: int; msgType: typedesc; domain: string) {..}
- Source Edit
template trackEncodeBytes(count: int; msgType: typedesc; domain: string) {..}
- Source Edit