summaryrefslogtreecommitdiff
path: root/upbc/message_layout.h
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2018-12-13 07:16:45 -0800
committerJoshua Haberman <jhaberman@gmail.com>2018-12-13 07:16:45 -0800
commitb31df4c57de16f50c441e7860be931e10f9433f2 (patch)
tree33f46a7a1a83aa3064b4255592f92a0b2670cb33 /upbc/message_layout.h
parent48bef61537178f05c1c2c7510f75df048de662e8 (diff)
parent6bcdaa13528bd9b924705ae9835dd8f0ca0337d5 (diff)
Merge branch 'arrayapi' into defcleanup
Diffstat (limited to 'upbc/message_layout.h')
-rw-r--r--upbc/message_layout.h5
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_;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback