VLink 2.0.0
A high-performance communication middleware
载入中...
搜索中...
未找到
flatbuffers_registry.h 文件参考

Process-local registry for BFBS blobs compiled into the current library. 更多...

#include <cstddef>
#include <mutex>
#include <shared_mutex>
#include <string>
#include <unordered_map>
#include <vector>
#include "../impl/types.h"
flatbuffers_registry.h 的引用(Include)关系图:
此图展示该文件被哪些文件直接或间接地引用了:

浏览该文件的源代码.

详细描述

Process-local registry for BFBS blobs compiled into the current library.

Protobuf already provides google::protobuf::DescriptorPool::generated_pool() as the global registry of generated descriptors. FlatBuffers has no equivalent runtime pool for BFBS reflection data, so VLink keeps a small process-local registry that stores BFBS blobs embedded into the current binary/library.

The registry is intentionally limited to:

  • registering compiled-in BFBS blobs
  • looking up one schema by fully-qualified root type
  • enumerating all registered BFBS schemas

It does not read schema files from disk and does not depend on VLINK_PROTO_DIR / VLINK_FBS_DIR.