From 6bcdaa13528bd9b924705ae9835dd8f0ca0337d5 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Thu, 13 Dec 2018 07:12:58 -0800 Subject: Changed generated array accessors to be more convenient. --- upbc/message_layout.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'upbc/message_layout.h') 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 field_offsets_; -- cgit v1.2.3