diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2019-01-29 08:26:00 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-29 08:26:00 -0800 |
commit | 2b62fbce6734eb672ae6ff6fcf258bfff4267ae8 (patch) | |
tree | c39dd54ef29a0b6610ebd4794b1646c83c66357a /upbc/message_layout.h | |
parent | c7870e0f77d6331babfdb89f8c83e4e0279b5e70 (diff) | |
parent | 3d931557907307ecc19b74e8f3188301b149e99a (diff) |
Merge pull request #145 from haberman/arrayapi
Generated code API changes for array and hazzers.
Diffstat (limited to 'upbc/message_layout.h')
-rw-r--r-- | upbc/message_layout.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/upbc/message_layout.h b/upbc/message_layout.h index bdcc336..a4cb289 100644 --- a/upbc/message_layout.h +++ b/upbc/message_layout.h @@ -60,6 +60,8 @@ class MessageLayout { Size message_size() const { return size_; } static bool HasHasbit(const google::protobuf::FieldDescriptor* field); + static SizeAndAlign SizeOfUnwrapped( + const google::protobuf::FieldDescriptor* field); private: void ComputeLayout(const google::protobuf::Descriptor* descriptor); @@ -87,7 +89,8 @@ class MessageLayout { } static SizeAndAlign SizeOf(const google::protobuf::FieldDescriptor* field); - static int64_t FieldLayoutRank(const google::protobuf::FieldDescriptor* field); + static int64_t FieldLayoutRank( + const google::protobuf::FieldDescriptor* field); std::unordered_map<const google::protobuf::FieldDescriptor*, Size> field_offsets_; |