pbd.codegen

Code generation module.

Members

Aliases

pstring
alias pstring = ProtoArray!char
Undocumented in source.

Functions

ProtoToD
auto ProtoToD()
Undocumented in source. Be warned that the author may not have intended to support it.
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, 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
Undocumented in source.
Unpacked
struct Unpacked
Undocumented in source.
ZigZag
struct ZigZag
Undocumented in source.

Meta