pbd.codegen

Code generation module.

Members

Functions

isZigZag
bool isZigZag()

Returns true if member is zigzag encoded.

protoMemberOf
string protoMemberOf(int tag)

Returns a tagged member name corresponding to a given tag.

protoTagOf
int protoTagOf()

Returns tag of a given member or 0 if not found.

toD
string toD(ParseTree p, int numIndent = 0, string indent = " ")

Generates D code from Protobuf IDL ParseTree (Proto result).

Manifest constants

Proto2DTypes
enum Proto2DTypes;

string dict converts Proto types to D types See also: https://developers.google.com/protocol-buffers/docs/proto#scalar

Structs

ProtoArray
struct ProtoArray(T)

Custom array type for pb decoding

ProtoTag
struct ProtoTag

Meta