[Yunq] Move message parser to shared internal function.
This commit is contained in:
parent
a71d5e9d24
commit
984d8b143e
10 changed files with 109 additions and 155 deletions
|
|
@ -7,6 +7,7 @@
|
|||
#include <glacier/container/vector.h>
|
||||
#include <glacier/string/string.h>
|
||||
#include <yunq/message_view.h>
|
||||
#include <yunq/serialize.h>
|
||||
#include <ztypes.h>
|
||||
|
||||
{% if package != None %}
|
||||
|
|
@ -47,6 +48,8 @@ class {{message.name}} {
|
|||
|
||||
// Parses everything except for caps.
|
||||
glcr::Status ParseFromBytesInternal(const yunq::MessageView& message);
|
||||
|
||||
uint64_t SerializeInternal(yunq::Serializer& serializer) const;
|
||||
};
|
||||
{%- endfor %}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue