Sha256: 784b9627cf6b0e4285e0e558bea7410b72c10835eae43b57367027c445a29b1c

Contents?: true

Size: 1.84 KB

Versions: 13

Compression:

Stored size: 1.84 KB

Contents

// Protocol Buffers - Google's data interchange format
// Copyright 2023 Google LLC.  All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd

#ifndef UPB_MESSAGE_COPY_H_
#define UPB_MESSAGE_COPY_H_

#include "upb/mem/arena.h"
#include "upb/message/array.h"
#include "upb/message/map.h"
#include "upb/message/message.h"
#include "upb/mini_table/message.h"

// Must be last.
#include "upb/port/def.inc"

#ifdef __cplusplus
extern "C" {
#endif

// Deep clones a message using the provided target arena.
upb_Message* upb_Message_DeepClone(const upb_Message* msg,
                                   const upb_MiniTable* m, upb_Arena* arena);

// Shallow clones a message using the provided target arena.
upb_Message* upb_Message_ShallowClone(const upb_Message* msg,
                                      const upb_MiniTable* m, upb_Arena* arena);

// Deep clones array contents.
upb_Array* upb_Array_DeepClone(const upb_Array* array, upb_CType value_type,
                               const upb_MiniTable* sub, upb_Arena* arena);

// Deep clones map contents.
upb_Map* upb_Map_DeepClone(const upb_Map* map, upb_CType key_type,
                           upb_CType value_type,
                           const upb_MiniTable* map_entry_table,
                           upb_Arena* arena);

// Deep copies the message from src to dst.
bool upb_Message_DeepCopy(upb_Message* dst, const upb_Message* src,
                          const upb_MiniTable* m, upb_Arena* arena);

// Shallow copies the message from src to dst.
void upb_Message_ShallowCopy(upb_Message* dst, const upb_Message* src,
                             const upb_MiniTable* m);

#ifdef __cplusplus
} /* extern "C" */
#endif

#include "upb/port/undef.inc"

#endif  // UPB_MESSAGE_COPY_H_

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
grpc-1.67.0 third_party/upb/upb/message/copy.h
grpc-1.67.0.pre1 third_party/upb/upb/message/copy.h
grpc-1.66.0 third_party/upb/upb/message/copy.h
grpc-1.66.0.pre5 third_party/upb/upb/message/copy.h
grpc-1.66.0.pre3 third_party/upb/upb/message/copy.h
grpc-1.63.2 third_party/upb/upb/message/copy.h
grpc-1.64.3 third_party/upb/upb/message/copy.h
grpc-1.65.2 third_party/upb/upb/message/copy.h
grpc-1.65.1 third_party/upb/upb/message/copy.h
grpc-1.65.0 third_party/upb/upb/message/copy.h
grpc-1.65.0.pre2 third_party/upb/upb/message/copy.h
grpc-1.65.0.pre1 third_party/upb/upb/message/copy.h
grpc-1.63.0 third_party/upb/upb/message/copy.h