Go to the documentation of this file.
19 #ifndef GRPCPP_IMPL_METADATA_MAP_H
20 #define GRPCPP_IMPL_METADATA_MAP_H
44 if (iter != map_.end()) {
45 return std::string(iter->second.begin(), iter->second.length());
53 for (
size_t i = 0; i < arr_.
count; i++) {
54 if (strncmp(
reinterpret_cast<const char*
>(
58 return std::string(
reinterpret_cast<const char*
>(
67 std::multimap<grpc::string_ref, grpc::string_ref>*
map() {
83 std::multimap<grpc::string_ref, grpc::string_ref> map_;
87 void Setup() { memset(&arr_, 0,
sizeof(arr_)); }
92 for (
size_t i = 0; i < arr_.
count; i++) {
94 map_.insert(std::pair<grpc::string_ref, grpc::string_ref>(
104 #endif // GRPCPP_IMPL_METADATA_MAP_H
grpc::string_ref StringRefFromSlice(const grpc_slice *slice)
Definition: slice.h:121
#define GRPC_SLICE_START_PTR(slice)
Definition: slice_type.h:99
An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided ...
Definition: alarm.h:33
GRPCAPI void grpc_metadata_array_destroy(grpc_metadata_array *array)
const char kBinaryErrorDetailsKey[]
Definition: metadata_map.h:32
#define GRPC_SLICE_LENGTH(slice)
Definition: slice_type.h:102