24#ifndef DCCLONEOF20210702H
25#define DCCLONEOF20210702H
28#include <google/protobuf/descriptor.h>
29#include <google/protobuf/descriptor.pb.h>
38 return field_desc->containing_oneof();
48 return field_desc->containing_oneof()->index();
57inline int oneof_size(
const google::protobuf::OneofDescriptor* oneof_desc)
Dynamic Compact Control Language namespace.
int containing_oneof_index(const google::protobuf::FieldDescriptor *field_desc)
Returns the index of the containing oneof of the given field, or -1 if the field is not part of a one...
bool is_part_of_oneof(const google::protobuf::FieldDescriptor *field_desc)
Checks whether a given field is part to a oneof or not.
int oneof_size(const google::protobuf::OneofDescriptor *oneof_desc)
Returns the number of bits needed to represent the oneof cases (including the unset case).
unsigned ceil_log2(dccl::uint64 v)