generalize Get/Put/RPC handling

This commit is contained in:
Michael Davidsaver
2019-12-15 12:04:50 -08:00
parent 851182c7a1
commit 583ee684ab
10 changed files with 594 additions and 381 deletions
+5
View File
@@ -29,6 +29,11 @@ namespace impl {
void to_wire(Buffer& buf, const FieldDesc* cur)
{
if(!cur) {
to_wire(buf, uint8_t(0xff));
return;
}
// we assume FieldDesc* is valid (checked on creation)
to_wire(buf, cur->code.code);