ngl_server 1.0
基于 Actor 模型的 C++ 服务器框架
tools_pb_field.cpp File Reference

实现Protobuf字段反射,用于动态消息检查 More...

Namespaces

namespace  ngl::tools
 工具函数命名空间。

Detailed Description

实现Protobuf字段反射,用于动态消息检查

提供基于Protobuf Reflection API的字段级拷贝功能:

  1. 支持单值字段和repeated字段的拷贝
  2. 支持所有Protobuf基本类型(int32/int64/uint32/uint64/float/double/bool/enum/string/message)
  3. 支持按字段号过滤和消息类型标识
Note
使用Protobuf Reflection API实现运行时动态字段访问
See also
tools_pb_field.h