libp2p/utils/protobuf

Search:
Group by:
Source   Edit  

Macros

macro decodeFor(_: type Protobuf; Types: untyped; withMetrics: bool = false;
                domain: string = ""): untyped {..}
This generates decode protobuf procs for Types Source   Edit  
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