19 #ifndef GRPCPP_IMPL_CODEGEN_METADATA_MAP_H
20 #define GRPCPP_IMPL_CODEGEN_METADATA_MAP_H
43 if (iter != map_.end()) {
44 return std::string(iter->second.begin(), iter->second.length());
52 for (
size_t i = 0; i < arr_.
count; i++) {
53 if (strncmp(
reinterpret_cast<const char*
>(
57 return std::string(
reinterpret_cast<const char*
>(
66 std::multimap<grpc::string_ref, grpc::string_ref>*
map() {
82 std::multimap<grpc::string_ref, grpc::string_ref> map_;
88 void Setup() { memset(&arr_, 0,
sizeof(arr_)); }
93 for (
size_t i = 0; i < arr_.
count; i++) {
95 map_.insert(std::pair<grpc::string_ref, grpc::string_ref>(
virtual void grpc_metadata_array_destroy(grpc_metadata_array *array)=0
#define GRPC_SLICE_START_PTR(slice)
Definition: slice.h:96
#define GRPC_SLICE_LENGTH(slice)
Definition: slice.h:99
const char kBinaryErrorDetailsKey[]
Definition: metadata_map.h:31
An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided ...
Definition: alarm.h:33
grpc::string_ref StringRefFromSlice(const grpc_slice *slice)
Definition: slice.h:132
CoreCodegenInterface * g_core_codegen_interface
Definition: completion_queue.h:96