Go to the documentation of this file.
38 #ifndef GOOGLE_PROTOBUF_GENERATED_MESSAGE_UTIL_H__
39 #define GOOGLE_PROTOBUF_GENERATED_MESSAGE_UTIL_H__
57 #include <google/protobuf/port_def.inc>
60 #error "You cannot SWIG proto headers"
69 class CodedInputStream;
74 template <
typename To,
typename From>
76 return PROTOBUF_NAMESPACE_ID::internal::down_cast<To>(
f);
78 template <
typename To,
typename From>
80 return PROTOBUF_NAMESPACE_ID::internal::down_cast<To>(
f);
100 for (
int i = t.size(); --
i >= 0;) {
111 for (
int i = t.
size(); --
i >= 0;) {
123 return (has_bits_array[hasbit / 32] & (1u << (hasbit & 31))) != 0;
129 return *oneof == tag >> 3;
147 Arena* submessage_arena);
150 template <
typename T>
154 return reinterpret_cast<T*
>(
158 template <
typename T>
160 Arena* submessage_arena) {
164 message_arena,
reinterpret_cast<MessageLite*
>(submessage),
172 int Get()
const {
return size_.load(std::memory_order_relaxed); }
173 void Set(
int size) { size_.store(
size, std::memory_order_relaxed); }
176 std::atomic<int> size_{0};
189 #if defined(_MSC_VER) && !defined(__clang__)
193 int visit_status_to_make_linker_init;
194 std::atomic<int> visit_status;
218 auto status = scc->
visit_status.load(std::memory_order_acquire);
238 #include <google/protobuf/port_undef.inc>
240 #endif // GOOGLE_PROTOBUF_GENERATED_MESSAGE_UTIL_H__
void InitSCCImpl(SCCInfoBase *scc)
void(* SpecialSerializer)(const uint8 *base, uint32 offset, uint32 tag, uint32 has_offset, io::CodedOutputStream *output)
const T & Get(const void *ptr)
bool IsInitialized() const final
void OnShutdownDestroyMessage(const void *ptr)
void ExtensionSerializer(const uint8 *ptr, uint32 offset, uint32 tag, uint32 has_offset, io::CodedOutputStream *output)
bool IsPresent(const void *base, uint32 hasbit)
void InitSCC(SCCInfoBase *scc)
bool AllAreInitialized(const Type &t)
GLsizei const GLchar *const * string
void GenericSwap(MessageLite *m1, MessageLite *m2)
bool AllAreInitializedWeak(const RepeatedPtrField< T > &t)
#define T(upbtypeconst, upbtype, ctype, default_value)
T * DuplicateIfNonNull(T *message)
void InitProtobufDefaults()
bool IsOneofPresent(const void *base, uint32 offset, uint32 tag)
void DestroyString(const void *s)
T * GetOwnedMessage(Arena *message_arena, T *submessage, Arena *submessage_arena)
void OnShutdownRun(void(*f)(const void *), const void *arg)
MessageLite * GetOwnedMessageInternal(Arena *message_arena, MessageLite *submessage, Arena *submessage_arena)
void OnShutdownDestroyString(const std::string *ptr)
MessageLite * DuplicateIfNonNullInternal(MessageLite *message)
SCCInfoBase * deps[N ? N :1]
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
std::atomic< int > visit_status
const PROTOBUF_EXPORT std::string & GetEmptyString()
void DestroyMessage(const void *message)
const PROTOBUF_EXPORT std::string & GetEmptyStringAlreadyInited()
const upb_json_parsermethod const upb_symtab upb_sink * output
void UnknownFieldSerializerLite(const uint8 *ptr, uint32 offset, uint32 tag, uint32 has_offset, io::CodedOutputStream *output)
GLenum GLuint GLenum GLsizei const GLchar * message
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:51