[Yunq] Factor out parsing most message fields to a shared method.
This commit is contained in:
parent
0dacbb87dc
commit
83dbd18cb4
4 changed files with 40 additions and 51 deletions
|
|
@ -26,6 +26,8 @@ class OpenFileRequest {
|
|||
glcr::String path_;
|
||||
glcr::Vector<uint64_t> options_;
|
||||
|
||||
// Parses everything except for caps.
|
||||
void ParseFromBytesInternal(const glcr::ByteBuffer&, uint64_t offset);
|
||||
};
|
||||
class File {
|
||||
public:
|
||||
|
|
@ -50,4 +52,6 @@ class File {
|
|||
uint64_t attrs_;
|
||||
z_cap_t mem_cap_;
|
||||
|
||||
// Parses everything except for caps.
|
||||
void ParseFromBytesInternal(const glcr::ByteBuffer&, uint64_t offset);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue