grpc 1.21.0 → 1.22.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of grpc might be problematic. Click here for more details.

Files changed (141) hide show
  1. checksums.yaml +4 -4
  2. data/Makefile +422 -62
  3. data/include/grpc/grpc_security.h +61 -5
  4. data/include/grpc/grpc_security_constants.h +1 -1
  5. data/include/grpc/impl/codegen/gpr_types.h +1 -1
  6. data/include/grpc/slice.h +2 -2
  7. data/src/core/ext/filters/client_channel/backup_poller.cc +2 -3
  8. data/src/core/ext/filters/client_channel/backup_poller.h +5 -2
  9. data/src/core/ext/filters/client_channel/client_channel.cc +260 -122
  10. data/src/core/ext/filters/client_channel/client_channel.h +0 -8
  11. data/src/core/ext/filters/client_channel/client_channel_channelz.cc +3 -84
  12. data/src/core/ext/filters/client_channel/client_channel_channelz.h +2 -28
  13. data/src/core/ext/filters/client_channel/client_channel_plugin.cc +2 -8
  14. data/src/core/ext/filters/client_channel/health/health_check_client.cc +5 -4
  15. data/src/core/ext/filters/client_channel/lb_policy.cc +16 -2
  16. data/src/core/ext/filters/client_channel/lb_policy.h +92 -98
  17. data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +63 -87
  18. data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.cc +6 -2
  19. data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +35 -87
  20. data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc +18 -74
  21. data/src/core/ext/filters/client_channel/lb_policy/subchannel_list.h +167 -217
  22. data/src/core/ext/filters/client_channel/lb_policy/xds/xds.cc +216 -190
  23. data/src/core/ext/filters/client_channel/lb_policy/xds/xds_load_balancer_api.cc +6 -2
  24. data/src/core/ext/filters/client_channel/lb_policy_factory.h +1 -1
  25. data/src/core/ext/filters/client_channel/lb_policy_registry.cc +1 -1
  26. data/src/core/ext/filters/client_channel/lb_policy_registry.h +1 -1
  27. data/src/core/ext/filters/client_channel/resolver.h +1 -1
  28. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc +6 -3
  29. data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc +0 -1
  30. data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc +2 -0
  31. data/src/core/ext/filters/client_channel/resolver_result_parsing.cc +8 -8
  32. data/src/core/ext/filters/client_channel/resolver_result_parsing.h +7 -7
  33. data/src/core/ext/filters/client_channel/resolving_lb_policy.cc +28 -64
  34. data/src/core/ext/filters/client_channel/resolving_lb_policy.h +4 -12
  35. data/src/core/ext/filters/client_channel/server_address.cc +4 -6
  36. data/src/core/ext/filters/client_channel/server_address.h +1 -3
  37. data/src/core/ext/filters/client_channel/service_config.cc +20 -22
  38. data/src/core/ext/filters/client_channel/service_config.h +26 -28
  39. data/src/core/ext/filters/client_channel/subchannel.cc +261 -160
  40. data/src/core/ext/filters/client_channel/subchannel.h +97 -23
  41. data/src/core/ext/filters/client_channel/subchannel_interface.h +113 -0
  42. data/src/core/ext/filters/message_size/message_size_filter.cc +12 -12
  43. data/src/core/ext/filters/message_size/message_size_filter.h +2 -2
  44. data/src/core/ext/transport/chttp2/server/chttp2_server.cc +50 -2
  45. data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +2 -2
  46. data/src/core/ext/transport/chttp2/transport/frame_data.cc +31 -36
  47. data/src/core/ext/transport/chttp2/transport/frame_rst_stream.cc +3 -2
  48. data/src/core/ext/transport/chttp2/transport/hpack_encoder.cc +71 -52
  49. data/src/core/ext/transport/chttp2/transport/hpack_parser.cc +18 -3
  50. data/src/core/ext/transport/chttp2/transport/hpack_table.cc +5 -12
  51. data/src/core/ext/transport/chttp2/transport/hpack_table.h +10 -1
  52. data/src/core/ext/transport/chttp2/transport/internal.h +3 -3
  53. data/src/core/ext/transport/chttp2/transport/parsing.cc +39 -57
  54. data/src/core/lib/channel/channelz.cc +136 -19
  55. data/src/core/lib/channel/channelz.h +36 -40
  56. data/src/core/lib/channel/channelz_registry.cc +74 -106
  57. data/src/core/lib/channel/channelz_registry.h +10 -28
  58. data/src/core/lib/channel/context.h +1 -1
  59. data/src/core/lib/channel/handshaker.cc +6 -0
  60. data/src/core/lib/compression/compression.cc +13 -8
  61. data/src/core/lib/compression/compression_internal.cc +14 -10
  62. data/src/core/lib/compression/compression_internal.h +1 -1
  63. data/src/core/lib/compression/stream_compression.cc +3 -2
  64. data/src/core/lib/compression/stream_compression.h +2 -2
  65. data/src/core/lib/compression/stream_compression_gzip.cc +9 -9
  66. data/src/core/lib/gpr/env.h +1 -1
  67. data/src/core/lib/gpr/string.cc +8 -1
  68. data/src/core/lib/gpr/string.h +6 -1
  69. data/src/core/lib/gprpp/fork.cc +1 -1
  70. data/src/core/lib/gprpp/fork.h +5 -1
  71. data/src/core/lib/gprpp/global_config.h +9 -0
  72. data/src/core/lib/gprpp/global_config_custom.h +1 -1
  73. data/src/core/lib/gprpp/inlined_vector.h +8 -0
  74. data/src/core/lib/gprpp/map.h +38 -21
  75. data/src/core/lib/gprpp/memory.h +2 -2
  76. data/src/core/lib/gprpp/orphanable.h +1 -1
  77. data/src/core/lib/gprpp/ref_counted.h +9 -4
  78. data/src/core/lib/http/httpcli.cc +3 -3
  79. data/src/core/lib/iomgr/buffer_list.h +1 -1
  80. data/src/core/lib/iomgr/call_combiner.cc +1 -1
  81. data/src/core/lib/iomgr/call_combiner.h +1 -1
  82. data/src/core/lib/iomgr/cfstream_handle.cc +3 -2
  83. data/src/core/lib/iomgr/cfstream_handle.h +4 -0
  84. data/src/core/lib/iomgr/error.cc +3 -3
  85. data/src/core/lib/iomgr/error.h +9 -3
  86. data/src/core/lib/iomgr/error_internal.h +1 -1
  87. data/src/core/lib/iomgr/ev_epoll1_linux.cc +1 -1
  88. data/src/core/lib/iomgr/ev_posix.cc +3 -3
  89. data/src/core/lib/iomgr/ev_posix.h +3 -2
  90. data/src/core/lib/iomgr/ev_windows.cc +2 -2
  91. data/src/core/lib/iomgr/iomgr.cc +4 -4
  92. data/src/core/lib/iomgr/lockfree_event.cc +1 -1
  93. data/src/core/lib/iomgr/port.h +5 -1
  94. data/src/core/lib/iomgr/tcp_posix.cc +1 -3
  95. data/src/core/lib/iomgr/tcp_server.cc +5 -0
  96. data/src/core/lib/iomgr/tcp_server.h +24 -0
  97. data/src/core/lib/iomgr/tcp_server_custom.cc +11 -9
  98. data/src/core/lib/iomgr/tcp_server_posix.cc +72 -11
  99. data/src/core/lib/iomgr/tcp_server_utils_posix.h +3 -0
  100. data/src/core/lib/iomgr/tcp_server_windows.cc +11 -9
  101. data/src/core/lib/iomgr/tcp_uv.cc +5 -6
  102. data/src/core/lib/iomgr/timer.h +2 -1
  103. data/src/core/lib/iomgr/udp_server.cc +2 -2
  104. data/src/core/lib/security/credentials/plugin/plugin_credentials.cc +1 -1
  105. data/src/core/lib/security/credentials/ssl/ssl_credentials.cc +20 -2
  106. data/src/core/lib/security/credentials/ssl/ssl_credentials.h +2 -2
  107. data/src/core/lib/security/security_connector/security_connector.h +1 -1
  108. data/src/core/lib/security/security_connector/ssl/ssl_security_connector.cc +1 -1
  109. data/src/core/lib/security/transport/auth_filters.h +3 -0
  110. data/src/core/lib/security/transport/client_auth_filter.cc +13 -0
  111. data/src/core/lib/security/transport/security_handshaker.cc +7 -7
  112. data/src/core/lib/slice/b64.h +2 -2
  113. data/src/core/lib/slice/slice.cc +82 -10
  114. data/src/core/lib/slice/slice_buffer.cc +49 -21
  115. data/src/core/lib/slice/slice_hash_table.h +2 -2
  116. data/src/core/lib/slice/slice_intern.cc +15 -16
  117. data/src/core/lib/slice/slice_internal.h +52 -0
  118. data/src/core/lib/slice/slice_string_helpers.cc +10 -1
  119. data/src/core/lib/slice/slice_string_helpers.h +3 -1
  120. data/src/core/lib/slice/slice_utils.h +50 -0
  121. data/src/core/lib/slice/slice_weak_hash_table.h +2 -2
  122. data/src/core/lib/surface/call.cc +14 -8
  123. data/src/core/lib/surface/channel.cc +89 -97
  124. data/src/core/lib/surface/channel.h +60 -6
  125. data/src/core/lib/surface/completion_queue.cc +49 -36
  126. data/src/core/lib/surface/completion_queue.h +2 -1
  127. data/src/core/lib/surface/server.cc +8 -8
  128. data/src/core/lib/surface/validate_metadata.cc +14 -8
  129. data/src/core/lib/surface/validate_metadata.h +13 -2
  130. data/src/core/lib/surface/version.cc +1 -1
  131. data/src/core/lib/transport/metadata.cc +56 -26
  132. data/src/core/lib/transport/metadata.h +91 -75
  133. data/src/core/lib/transport/static_metadata.cc +262 -176
  134. data/src/core/lib/transport/static_metadata.h +272 -180
  135. data/src/core/lib/transport/transport.cc +1 -1
  136. data/src/core/lib/transport/transport.h +8 -2
  137. data/src/core/tsi/alts/handshaker/alts_shared_resource.h +1 -1
  138. data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +2 -0
  139. data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +5 -2
  140. data/src/ruby/lib/grpc/version.rb +1 -1
  141. metadata +33 -31
@@ -384,190 +384,276 @@ static const uint8_t elem_idxs[] = {
384
384
  52, 53, 54, 76, 69, 55, 56, 70, 58, 78, 80, 81, 82, 83, 59, 64,
385
385
  60, 75, 72, 255, 85, 255, 255, 68, 255, 255, 0};
386
386
 
387
- grpc_mdelem grpc_static_mdelem_for_static_strings(int a, int b) {
387
+ grpc_mdelem grpc_static_mdelem_for_static_strings(intptr_t a, intptr_t b) {
388
388
  if (a == -1 || b == -1) return GRPC_MDNULL;
389
- uint32_t k = (uint32_t)(a * 107 + b);
389
+ uint32_t k = static_cast<uint32_t>(a * 107 + b);
390
390
  uint32_t h = elems_phash(k);
391
391
  return h < GPR_ARRAY_SIZE(elem_keys) && elem_keys[h] == k &&
392
392
  elem_idxs[h] != 255
393
- ? GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[elem_idxs[h]],
393
+ ? GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[elem_idxs[h]].data(),
394
394
  GRPC_MDELEM_STORAGE_STATIC)
395
395
  : GRPC_MDNULL;
396
396
  }
397
397
 
398
- grpc_mdelem_data grpc_static_mdelem_table[GRPC_STATIC_MDELEM_COUNT] = {
399
- {{&grpc_static_metadata_refcounts[3], {{10, g_bytes + 19}}},
400
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
401
- {{&grpc_static_metadata_refcounts[1], {{7, g_bytes + 5}}},
402
- {&grpc_static_metadata_refcounts[40], {{3, g_bytes + 612}}}},
403
- {{&grpc_static_metadata_refcounts[1], {{7, g_bytes + 5}}},
404
- {&grpc_static_metadata_refcounts[41], {{4, g_bytes + 615}}}},
405
- {{&grpc_static_metadata_refcounts[0], {{5, g_bytes + 0}}},
406
- {&grpc_static_metadata_refcounts[42], {{1, g_bytes + 619}}}},
407
- {{&grpc_static_metadata_refcounts[0], {{5, g_bytes + 0}}},
408
- {&grpc_static_metadata_refcounts[43], {{11, g_bytes + 620}}}},
409
- {{&grpc_static_metadata_refcounts[4], {{7, g_bytes + 29}}},
410
- {&grpc_static_metadata_refcounts[44], {{4, g_bytes + 631}}}},
411
- {{&grpc_static_metadata_refcounts[4], {{7, g_bytes + 29}}},
412
- {&grpc_static_metadata_refcounts[45], {{5, g_bytes + 635}}}},
413
- {{&grpc_static_metadata_refcounts[2], {{7, g_bytes + 12}}},
414
- {&grpc_static_metadata_refcounts[46], {{3, g_bytes + 640}}}},
415
- {{&grpc_static_metadata_refcounts[2], {{7, g_bytes + 12}}},
416
- {&grpc_static_metadata_refcounts[47], {{3, g_bytes + 643}}}},
417
- {{&grpc_static_metadata_refcounts[2], {{7, g_bytes + 12}}},
418
- {&grpc_static_metadata_refcounts[48], {{3, g_bytes + 646}}}},
419
- {{&grpc_static_metadata_refcounts[2], {{7, g_bytes + 12}}},
420
- {&grpc_static_metadata_refcounts[49], {{3, g_bytes + 649}}}},
421
- {{&grpc_static_metadata_refcounts[2], {{7, g_bytes + 12}}},
422
- {&grpc_static_metadata_refcounts[50], {{3, g_bytes + 652}}}},
423
- {{&grpc_static_metadata_refcounts[2], {{7, g_bytes + 12}}},
424
- {&grpc_static_metadata_refcounts[51], {{3, g_bytes + 655}}}},
425
- {{&grpc_static_metadata_refcounts[2], {{7, g_bytes + 12}}},
426
- {&grpc_static_metadata_refcounts[52], {{3, g_bytes + 658}}}},
427
- {{&grpc_static_metadata_refcounts[53], {{14, g_bytes + 661}}},
428
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
429
- {{&grpc_static_metadata_refcounts[16], {{15, g_bytes + 186}}},
430
- {&grpc_static_metadata_refcounts[54], {{13, g_bytes + 675}}}},
431
- {{&grpc_static_metadata_refcounts[55], {{15, g_bytes + 688}}},
432
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
433
- {{&grpc_static_metadata_refcounts[56], {{13, g_bytes + 703}}},
434
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
435
- {{&grpc_static_metadata_refcounts[57], {{6, g_bytes + 716}}},
436
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
437
- {{&grpc_static_metadata_refcounts[58], {{27, g_bytes + 722}}},
438
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
439
- {{&grpc_static_metadata_refcounts[59], {{3, g_bytes + 749}}},
440
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
441
- {{&grpc_static_metadata_refcounts[60], {{5, g_bytes + 752}}},
442
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
443
- {{&grpc_static_metadata_refcounts[61], {{13, g_bytes + 757}}},
444
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
445
- {{&grpc_static_metadata_refcounts[62], {{13, g_bytes + 770}}},
446
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
447
- {{&grpc_static_metadata_refcounts[63], {{19, g_bytes + 783}}},
448
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
449
- {{&grpc_static_metadata_refcounts[15], {{16, g_bytes + 170}}},
450
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
451
- {{&grpc_static_metadata_refcounts[64], {{16, g_bytes + 802}}},
452
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
453
- {{&grpc_static_metadata_refcounts[65], {{14, g_bytes + 818}}},
454
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
455
- {{&grpc_static_metadata_refcounts[66], {{16, g_bytes + 832}}},
456
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
457
- {{&grpc_static_metadata_refcounts[67], {{13, g_bytes + 848}}},
458
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
459
- {{&grpc_static_metadata_refcounts[14], {{12, g_bytes + 158}}},
460
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
461
- {{&grpc_static_metadata_refcounts[68], {{6, g_bytes + 861}}},
462
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
463
- {{&grpc_static_metadata_refcounts[69], {{4, g_bytes + 867}}},
464
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
465
- {{&grpc_static_metadata_refcounts[70], {{4, g_bytes + 871}}},
466
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
467
- {{&grpc_static_metadata_refcounts[71], {{6, g_bytes + 875}}},
468
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
469
- {{&grpc_static_metadata_refcounts[72], {{7, g_bytes + 881}}},
470
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
471
- {{&grpc_static_metadata_refcounts[73], {{4, g_bytes + 888}}},
472
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
473
- {{&grpc_static_metadata_refcounts[20], {{4, g_bytes + 278}}},
474
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
475
- {{&grpc_static_metadata_refcounts[74], {{8, g_bytes + 892}}},
476
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
477
- {{&grpc_static_metadata_refcounts[75], {{17, g_bytes + 900}}},
478
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
479
- {{&grpc_static_metadata_refcounts[76], {{13, g_bytes + 917}}},
480
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
481
- {{&grpc_static_metadata_refcounts[77], {{8, g_bytes + 930}}},
482
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
483
- {{&grpc_static_metadata_refcounts[78], {{19, g_bytes + 938}}},
484
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
485
- {{&grpc_static_metadata_refcounts[79], {{13, g_bytes + 957}}},
486
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
487
- {{&grpc_static_metadata_refcounts[80], {{4, g_bytes + 970}}},
488
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
489
- {{&grpc_static_metadata_refcounts[81], {{8, g_bytes + 974}}},
490
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
491
- {{&grpc_static_metadata_refcounts[82], {{12, g_bytes + 982}}},
492
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
493
- {{&grpc_static_metadata_refcounts[83], {{18, g_bytes + 994}}},
494
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
495
- {{&grpc_static_metadata_refcounts[84], {{19, g_bytes + 1012}}},
496
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
497
- {{&grpc_static_metadata_refcounts[85], {{5, g_bytes + 1031}}},
498
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
499
- {{&grpc_static_metadata_refcounts[86], {{7, g_bytes + 1036}}},
500
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
501
- {{&grpc_static_metadata_refcounts[87], {{7, g_bytes + 1043}}},
502
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
503
- {{&grpc_static_metadata_refcounts[88], {{11, g_bytes + 1050}}},
504
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
505
- {{&grpc_static_metadata_refcounts[89], {{6, g_bytes + 1061}}},
506
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
507
- {{&grpc_static_metadata_refcounts[90], {{10, g_bytes + 1067}}},
508
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
509
- {{&grpc_static_metadata_refcounts[91], {{25, g_bytes + 1077}}},
510
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
511
- {{&grpc_static_metadata_refcounts[92], {{17, g_bytes + 1102}}},
512
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
513
- {{&grpc_static_metadata_refcounts[19], {{10, g_bytes + 268}}},
514
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
515
- {{&grpc_static_metadata_refcounts[93], {{4, g_bytes + 1119}}},
516
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
517
- {{&grpc_static_metadata_refcounts[94], {{3, g_bytes + 1123}}},
518
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
519
- {{&grpc_static_metadata_refcounts[95], {{16, g_bytes + 1126}}},
520
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
521
- {{&grpc_static_metadata_refcounts[7], {{11, g_bytes + 50}}},
522
- {&grpc_static_metadata_refcounts[96], {{1, g_bytes + 1142}}}},
523
- {{&grpc_static_metadata_refcounts[7], {{11, g_bytes + 50}}},
524
- {&grpc_static_metadata_refcounts[25], {{1, g_bytes + 350}}}},
525
- {{&grpc_static_metadata_refcounts[7], {{11, g_bytes + 50}}},
526
- {&grpc_static_metadata_refcounts[26], {{1, g_bytes + 351}}}},
527
- {{&grpc_static_metadata_refcounts[9], {{13, g_bytes + 77}}},
528
- {&grpc_static_metadata_refcounts[97], {{8, g_bytes + 1143}}}},
529
- {{&grpc_static_metadata_refcounts[9], {{13, g_bytes + 77}}},
530
- {&grpc_static_metadata_refcounts[38], {{4, g_bytes + 597}}}},
531
- {{&grpc_static_metadata_refcounts[9], {{13, g_bytes + 77}}},
532
- {&grpc_static_metadata_refcounts[37], {{7, g_bytes + 590}}}},
533
- {{&grpc_static_metadata_refcounts[5], {{2, g_bytes + 36}}},
534
- {&grpc_static_metadata_refcounts[98], {{8, g_bytes + 1151}}}},
535
- {{&grpc_static_metadata_refcounts[14], {{12, g_bytes + 158}}},
536
- {&grpc_static_metadata_refcounts[99], {{16, g_bytes + 1159}}}},
537
- {{&grpc_static_metadata_refcounts[4], {{7, g_bytes + 29}}},
538
- {&grpc_static_metadata_refcounts[100], {{4, g_bytes + 1175}}}},
539
- {{&grpc_static_metadata_refcounts[1], {{7, g_bytes + 5}}},
540
- {&grpc_static_metadata_refcounts[101], {{3, g_bytes + 1179}}}},
541
- {{&grpc_static_metadata_refcounts[16], {{15, g_bytes + 186}}},
542
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
543
- {{&grpc_static_metadata_refcounts[15], {{16, g_bytes + 170}}},
544
- {&grpc_static_metadata_refcounts[97], {{8, g_bytes + 1143}}}},
545
- {{&grpc_static_metadata_refcounts[15], {{16, g_bytes + 170}}},
546
- {&grpc_static_metadata_refcounts[38], {{4, g_bytes + 597}}}},
547
- {{&grpc_static_metadata_refcounts[21], {{8, g_bytes + 282}}},
548
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
549
- {{&grpc_static_metadata_refcounts[102], {{11, g_bytes + 1182}}},
550
- {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}},
551
- {{&grpc_static_metadata_refcounts[10], {{20, g_bytes + 90}}},
552
- {&grpc_static_metadata_refcounts[97], {{8, g_bytes + 1143}}}},
553
- {{&grpc_static_metadata_refcounts[10], {{20, g_bytes + 90}}},
554
- {&grpc_static_metadata_refcounts[37], {{7, g_bytes + 590}}}},
555
- {{&grpc_static_metadata_refcounts[10], {{20, g_bytes + 90}}},
556
- {&grpc_static_metadata_refcounts[103], {{16, g_bytes + 1193}}}},
557
- {{&grpc_static_metadata_refcounts[10], {{20, g_bytes + 90}}},
558
- {&grpc_static_metadata_refcounts[38], {{4, g_bytes + 597}}}},
559
- {{&grpc_static_metadata_refcounts[10], {{20, g_bytes + 90}}},
560
- {&grpc_static_metadata_refcounts[104], {{13, g_bytes + 1209}}}},
561
- {{&grpc_static_metadata_refcounts[10], {{20, g_bytes + 90}}},
562
- {&grpc_static_metadata_refcounts[105], {{12, g_bytes + 1222}}}},
563
- {{&grpc_static_metadata_refcounts[10], {{20, g_bytes + 90}}},
564
- {&grpc_static_metadata_refcounts[106], {{21, g_bytes + 1234}}}},
565
- {{&grpc_static_metadata_refcounts[16], {{15, g_bytes + 186}}},
566
- {&grpc_static_metadata_refcounts[97], {{8, g_bytes + 1143}}}},
567
- {{&grpc_static_metadata_refcounts[16], {{15, g_bytes + 186}}},
568
- {&grpc_static_metadata_refcounts[38], {{4, g_bytes + 597}}}},
569
- {{&grpc_static_metadata_refcounts[16], {{15, g_bytes + 186}}},
570
- {&grpc_static_metadata_refcounts[104], {{13, g_bytes + 1209}}}},
398
+ grpc_core::StaticMetadata grpc_static_mdelem_table[GRPC_STATIC_MDELEM_COUNT] = {
399
+ grpc_core::StaticMetadata(
400
+ {&grpc_static_metadata_refcounts[3], {{10, g_bytes + 19}}},
401
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
402
+ grpc_core::StaticMetadata(
403
+ {&grpc_static_metadata_refcounts[1], {{7, g_bytes + 5}}},
404
+ {&grpc_static_metadata_refcounts[40], {{3, g_bytes + 612}}}),
405
+ grpc_core::StaticMetadata(
406
+ {&grpc_static_metadata_refcounts[1], {{7, g_bytes + 5}}},
407
+ {&grpc_static_metadata_refcounts[41], {{4, g_bytes + 615}}}),
408
+ grpc_core::StaticMetadata(
409
+ {&grpc_static_metadata_refcounts[0], {{5, g_bytes + 0}}},
410
+ {&grpc_static_metadata_refcounts[42], {{1, g_bytes + 619}}}),
411
+ grpc_core::StaticMetadata(
412
+ {&grpc_static_metadata_refcounts[0], {{5, g_bytes + 0}}},
413
+ {&grpc_static_metadata_refcounts[43], {{11, g_bytes + 620}}}),
414
+ grpc_core::StaticMetadata(
415
+ {&grpc_static_metadata_refcounts[4], {{7, g_bytes + 29}}},
416
+ {&grpc_static_metadata_refcounts[44], {{4, g_bytes + 631}}}),
417
+ grpc_core::StaticMetadata(
418
+ {&grpc_static_metadata_refcounts[4], {{7, g_bytes + 29}}},
419
+ {&grpc_static_metadata_refcounts[45], {{5, g_bytes + 635}}}),
420
+ grpc_core::StaticMetadata(
421
+ {&grpc_static_metadata_refcounts[2], {{7, g_bytes + 12}}},
422
+ {&grpc_static_metadata_refcounts[46], {{3, g_bytes + 640}}}),
423
+ grpc_core::StaticMetadata(
424
+ {&grpc_static_metadata_refcounts[2], {{7, g_bytes + 12}}},
425
+ {&grpc_static_metadata_refcounts[47], {{3, g_bytes + 643}}}),
426
+ grpc_core::StaticMetadata(
427
+ {&grpc_static_metadata_refcounts[2], {{7, g_bytes + 12}}},
428
+ {&grpc_static_metadata_refcounts[48], {{3, g_bytes + 646}}}),
429
+ grpc_core::StaticMetadata(
430
+ {&grpc_static_metadata_refcounts[2], {{7, g_bytes + 12}}},
431
+ {&grpc_static_metadata_refcounts[49], {{3, g_bytes + 649}}}),
432
+ grpc_core::StaticMetadata(
433
+ {&grpc_static_metadata_refcounts[2], {{7, g_bytes + 12}}},
434
+ {&grpc_static_metadata_refcounts[50], {{3, g_bytes + 652}}}),
435
+ grpc_core::StaticMetadata(
436
+ {&grpc_static_metadata_refcounts[2], {{7, g_bytes + 12}}},
437
+ {&grpc_static_metadata_refcounts[51], {{3, g_bytes + 655}}}),
438
+ grpc_core::StaticMetadata(
439
+ {&grpc_static_metadata_refcounts[2], {{7, g_bytes + 12}}},
440
+ {&grpc_static_metadata_refcounts[52], {{3, g_bytes + 658}}}),
441
+ grpc_core::StaticMetadata(
442
+ {&grpc_static_metadata_refcounts[53], {{14, g_bytes + 661}}},
443
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
444
+ grpc_core::StaticMetadata(
445
+ {&grpc_static_metadata_refcounts[16], {{15, g_bytes + 186}}},
446
+ {&grpc_static_metadata_refcounts[54], {{13, g_bytes + 675}}}),
447
+ grpc_core::StaticMetadata(
448
+ {&grpc_static_metadata_refcounts[55], {{15, g_bytes + 688}}},
449
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
450
+ grpc_core::StaticMetadata(
451
+ {&grpc_static_metadata_refcounts[56], {{13, g_bytes + 703}}},
452
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
453
+ grpc_core::StaticMetadata(
454
+ {&grpc_static_metadata_refcounts[57], {{6, g_bytes + 716}}},
455
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
456
+ grpc_core::StaticMetadata(
457
+ {&grpc_static_metadata_refcounts[58], {{27, g_bytes + 722}}},
458
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
459
+ grpc_core::StaticMetadata(
460
+ {&grpc_static_metadata_refcounts[59], {{3, g_bytes + 749}}},
461
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
462
+ grpc_core::StaticMetadata(
463
+ {&grpc_static_metadata_refcounts[60], {{5, g_bytes + 752}}},
464
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
465
+ grpc_core::StaticMetadata(
466
+ {&grpc_static_metadata_refcounts[61], {{13, g_bytes + 757}}},
467
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
468
+ grpc_core::StaticMetadata(
469
+ {&grpc_static_metadata_refcounts[62], {{13, g_bytes + 770}}},
470
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
471
+ grpc_core::StaticMetadata(
472
+ {&grpc_static_metadata_refcounts[63], {{19, g_bytes + 783}}},
473
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
474
+ grpc_core::StaticMetadata(
475
+ {&grpc_static_metadata_refcounts[15], {{16, g_bytes + 170}}},
476
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
477
+ grpc_core::StaticMetadata(
478
+ {&grpc_static_metadata_refcounts[64], {{16, g_bytes + 802}}},
479
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
480
+ grpc_core::StaticMetadata(
481
+ {&grpc_static_metadata_refcounts[65], {{14, g_bytes + 818}}},
482
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
483
+ grpc_core::StaticMetadata(
484
+ {&grpc_static_metadata_refcounts[66], {{16, g_bytes + 832}}},
485
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
486
+ grpc_core::StaticMetadata(
487
+ {&grpc_static_metadata_refcounts[67], {{13, g_bytes + 848}}},
488
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
489
+ grpc_core::StaticMetadata(
490
+ {&grpc_static_metadata_refcounts[14], {{12, g_bytes + 158}}},
491
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
492
+ grpc_core::StaticMetadata(
493
+ {&grpc_static_metadata_refcounts[68], {{6, g_bytes + 861}}},
494
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
495
+ grpc_core::StaticMetadata(
496
+ {&grpc_static_metadata_refcounts[69], {{4, g_bytes + 867}}},
497
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
498
+ grpc_core::StaticMetadata(
499
+ {&grpc_static_metadata_refcounts[70], {{4, g_bytes + 871}}},
500
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
501
+ grpc_core::StaticMetadata(
502
+ {&grpc_static_metadata_refcounts[71], {{6, g_bytes + 875}}},
503
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
504
+ grpc_core::StaticMetadata(
505
+ {&grpc_static_metadata_refcounts[72], {{7, g_bytes + 881}}},
506
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
507
+ grpc_core::StaticMetadata(
508
+ {&grpc_static_metadata_refcounts[73], {{4, g_bytes + 888}}},
509
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
510
+ grpc_core::StaticMetadata(
511
+ {&grpc_static_metadata_refcounts[20], {{4, g_bytes + 278}}},
512
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
513
+ grpc_core::StaticMetadata(
514
+ {&grpc_static_metadata_refcounts[74], {{8, g_bytes + 892}}},
515
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
516
+ grpc_core::StaticMetadata(
517
+ {&grpc_static_metadata_refcounts[75], {{17, g_bytes + 900}}},
518
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
519
+ grpc_core::StaticMetadata(
520
+ {&grpc_static_metadata_refcounts[76], {{13, g_bytes + 917}}},
521
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
522
+ grpc_core::StaticMetadata(
523
+ {&grpc_static_metadata_refcounts[77], {{8, g_bytes + 930}}},
524
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
525
+ grpc_core::StaticMetadata(
526
+ {&grpc_static_metadata_refcounts[78], {{19, g_bytes + 938}}},
527
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
528
+ grpc_core::StaticMetadata(
529
+ {&grpc_static_metadata_refcounts[79], {{13, g_bytes + 957}}},
530
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
531
+ grpc_core::StaticMetadata(
532
+ {&grpc_static_metadata_refcounts[80], {{4, g_bytes + 970}}},
533
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
534
+ grpc_core::StaticMetadata(
535
+ {&grpc_static_metadata_refcounts[81], {{8, g_bytes + 974}}},
536
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
537
+ grpc_core::StaticMetadata(
538
+ {&grpc_static_metadata_refcounts[82], {{12, g_bytes + 982}}},
539
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
540
+ grpc_core::StaticMetadata(
541
+ {&grpc_static_metadata_refcounts[83], {{18, g_bytes + 994}}},
542
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
543
+ grpc_core::StaticMetadata(
544
+ {&grpc_static_metadata_refcounts[84], {{19, g_bytes + 1012}}},
545
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
546
+ grpc_core::StaticMetadata(
547
+ {&grpc_static_metadata_refcounts[85], {{5, g_bytes + 1031}}},
548
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
549
+ grpc_core::StaticMetadata(
550
+ {&grpc_static_metadata_refcounts[86], {{7, g_bytes + 1036}}},
551
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
552
+ grpc_core::StaticMetadata(
553
+ {&grpc_static_metadata_refcounts[87], {{7, g_bytes + 1043}}},
554
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
555
+ grpc_core::StaticMetadata(
556
+ {&grpc_static_metadata_refcounts[88], {{11, g_bytes + 1050}}},
557
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
558
+ grpc_core::StaticMetadata(
559
+ {&grpc_static_metadata_refcounts[89], {{6, g_bytes + 1061}}},
560
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
561
+ grpc_core::StaticMetadata(
562
+ {&grpc_static_metadata_refcounts[90], {{10, g_bytes + 1067}}},
563
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
564
+ grpc_core::StaticMetadata(
565
+ {&grpc_static_metadata_refcounts[91], {{25, g_bytes + 1077}}},
566
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
567
+ grpc_core::StaticMetadata(
568
+ {&grpc_static_metadata_refcounts[92], {{17, g_bytes + 1102}}},
569
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
570
+ grpc_core::StaticMetadata(
571
+ {&grpc_static_metadata_refcounts[19], {{10, g_bytes + 268}}},
572
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
573
+ grpc_core::StaticMetadata(
574
+ {&grpc_static_metadata_refcounts[93], {{4, g_bytes + 1119}}},
575
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
576
+ grpc_core::StaticMetadata(
577
+ {&grpc_static_metadata_refcounts[94], {{3, g_bytes + 1123}}},
578
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
579
+ grpc_core::StaticMetadata(
580
+ {&grpc_static_metadata_refcounts[95], {{16, g_bytes + 1126}}},
581
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
582
+ grpc_core::StaticMetadata(
583
+ {&grpc_static_metadata_refcounts[7], {{11, g_bytes + 50}}},
584
+ {&grpc_static_metadata_refcounts[96], {{1, g_bytes + 1142}}}),
585
+ grpc_core::StaticMetadata(
586
+ {&grpc_static_metadata_refcounts[7], {{11, g_bytes + 50}}},
587
+ {&grpc_static_metadata_refcounts[25], {{1, g_bytes + 350}}}),
588
+ grpc_core::StaticMetadata(
589
+ {&grpc_static_metadata_refcounts[7], {{11, g_bytes + 50}}},
590
+ {&grpc_static_metadata_refcounts[26], {{1, g_bytes + 351}}}),
591
+ grpc_core::StaticMetadata(
592
+ {&grpc_static_metadata_refcounts[9], {{13, g_bytes + 77}}},
593
+ {&grpc_static_metadata_refcounts[97], {{8, g_bytes + 1143}}}),
594
+ grpc_core::StaticMetadata(
595
+ {&grpc_static_metadata_refcounts[9], {{13, g_bytes + 77}}},
596
+ {&grpc_static_metadata_refcounts[38], {{4, g_bytes + 597}}}),
597
+ grpc_core::StaticMetadata(
598
+ {&grpc_static_metadata_refcounts[9], {{13, g_bytes + 77}}},
599
+ {&grpc_static_metadata_refcounts[37], {{7, g_bytes + 590}}}),
600
+ grpc_core::StaticMetadata(
601
+ {&grpc_static_metadata_refcounts[5], {{2, g_bytes + 36}}},
602
+ {&grpc_static_metadata_refcounts[98], {{8, g_bytes + 1151}}}),
603
+ grpc_core::StaticMetadata(
604
+ {&grpc_static_metadata_refcounts[14], {{12, g_bytes + 158}}},
605
+ {&grpc_static_metadata_refcounts[99], {{16, g_bytes + 1159}}}),
606
+ grpc_core::StaticMetadata(
607
+ {&grpc_static_metadata_refcounts[4], {{7, g_bytes + 29}}},
608
+ {&grpc_static_metadata_refcounts[100], {{4, g_bytes + 1175}}}),
609
+ grpc_core::StaticMetadata(
610
+ {&grpc_static_metadata_refcounts[1], {{7, g_bytes + 5}}},
611
+ {&grpc_static_metadata_refcounts[101], {{3, g_bytes + 1179}}}),
612
+ grpc_core::StaticMetadata(
613
+ {&grpc_static_metadata_refcounts[16], {{15, g_bytes + 186}}},
614
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
615
+ grpc_core::StaticMetadata(
616
+ {&grpc_static_metadata_refcounts[15], {{16, g_bytes + 170}}},
617
+ {&grpc_static_metadata_refcounts[97], {{8, g_bytes + 1143}}}),
618
+ grpc_core::StaticMetadata(
619
+ {&grpc_static_metadata_refcounts[15], {{16, g_bytes + 170}}},
620
+ {&grpc_static_metadata_refcounts[38], {{4, g_bytes + 597}}}),
621
+ grpc_core::StaticMetadata(
622
+ {&grpc_static_metadata_refcounts[21], {{8, g_bytes + 282}}},
623
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
624
+ grpc_core::StaticMetadata(
625
+ {&grpc_static_metadata_refcounts[102], {{11, g_bytes + 1182}}},
626
+ {&grpc_static_metadata_refcounts[29], {{0, g_bytes + 354}}}),
627
+ grpc_core::StaticMetadata(
628
+ {&grpc_static_metadata_refcounts[10], {{20, g_bytes + 90}}},
629
+ {&grpc_static_metadata_refcounts[97], {{8, g_bytes + 1143}}}),
630
+ grpc_core::StaticMetadata(
631
+ {&grpc_static_metadata_refcounts[10], {{20, g_bytes + 90}}},
632
+ {&grpc_static_metadata_refcounts[37], {{7, g_bytes + 590}}}),
633
+ grpc_core::StaticMetadata(
634
+ {&grpc_static_metadata_refcounts[10], {{20, g_bytes + 90}}},
635
+ {&grpc_static_metadata_refcounts[103], {{16, g_bytes + 1193}}}),
636
+ grpc_core::StaticMetadata(
637
+ {&grpc_static_metadata_refcounts[10], {{20, g_bytes + 90}}},
638
+ {&grpc_static_metadata_refcounts[38], {{4, g_bytes + 597}}}),
639
+ grpc_core::StaticMetadata(
640
+ {&grpc_static_metadata_refcounts[10], {{20, g_bytes + 90}}},
641
+ {&grpc_static_metadata_refcounts[104], {{13, g_bytes + 1209}}}),
642
+ grpc_core::StaticMetadata(
643
+ {&grpc_static_metadata_refcounts[10], {{20, g_bytes + 90}}},
644
+ {&grpc_static_metadata_refcounts[105], {{12, g_bytes + 1222}}}),
645
+ grpc_core::StaticMetadata(
646
+ {&grpc_static_metadata_refcounts[10], {{20, g_bytes + 90}}},
647
+ {&grpc_static_metadata_refcounts[106], {{21, g_bytes + 1234}}}),
648
+ grpc_core::StaticMetadata(
649
+ {&grpc_static_metadata_refcounts[16], {{15, g_bytes + 186}}},
650
+ {&grpc_static_metadata_refcounts[97], {{8, g_bytes + 1143}}}),
651
+ grpc_core::StaticMetadata(
652
+ {&grpc_static_metadata_refcounts[16], {{15, g_bytes + 186}}},
653
+ {&grpc_static_metadata_refcounts[38], {{4, g_bytes + 597}}}),
654
+ grpc_core::StaticMetadata(
655
+ {&grpc_static_metadata_refcounts[16], {{15, g_bytes + 186}}},
656
+ {&grpc_static_metadata_refcounts[104], {{13, g_bytes + 1209}}}),
571
657
  };
572
658
  const uint8_t grpc_static_accept_encoding_metadata[8] = {0, 76, 77, 78,
573
659
  79, 80, 81, 82};
@@ -29,6 +29,8 @@
29
29
 
30
30
  #include <grpc/support/port_platform.h>
31
31
 
32
+ #include <cstdint>
33
+
32
34
  #include "src/core/lib/transport/metadata.h"
33
35
 
34
36
  #define GRPC_STATIC_MDSTR_COUNT 107
@@ -263,271 +265,359 @@ extern grpc_slice_refcount
263
265
  (slice).refcount->GetType() == grpc_slice_refcount::Type::STATIC)
264
266
 
265
267
  #define GRPC_STATIC_METADATA_INDEX(static_slice) \
266
- ((int)((static_slice).refcount - grpc_static_metadata_refcounts))
268
+ (static_cast<intptr_t>( \
269
+ ((static_slice).refcount - grpc_static_metadata_refcounts)))
267
270
 
268
271
  #define GRPC_STATIC_MDELEM_COUNT 86
269
- extern grpc_mdelem_data grpc_static_mdelem_table[GRPC_STATIC_MDELEM_COUNT];
272
+ extern grpc_core::StaticMetadata
273
+ grpc_static_mdelem_table[GRPC_STATIC_MDELEM_COUNT];
270
274
  extern uintptr_t grpc_static_mdelem_user_data[GRPC_STATIC_MDELEM_COUNT];
271
275
  /* ":authority": "" */
272
- #define GRPC_MDELEM_AUTHORITY_EMPTY \
273
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[0], GRPC_MDELEM_STORAGE_STATIC))
276
+ #define GRPC_MDELEM_AUTHORITY_EMPTY \
277
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[0].data(), \
278
+ GRPC_MDELEM_STORAGE_STATIC))
274
279
  /* ":method": "GET" */
275
- #define GRPC_MDELEM_METHOD_GET \
276
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[1], GRPC_MDELEM_STORAGE_STATIC))
280
+ #define GRPC_MDELEM_METHOD_GET \
281
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[1].data(), \
282
+ GRPC_MDELEM_STORAGE_STATIC))
277
283
  /* ":method": "POST" */
278
- #define GRPC_MDELEM_METHOD_POST \
279
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[2], GRPC_MDELEM_STORAGE_STATIC))
284
+ #define GRPC_MDELEM_METHOD_POST \
285
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[2].data(), \
286
+ GRPC_MDELEM_STORAGE_STATIC))
280
287
  /* ":path": "/" */
281
- #define GRPC_MDELEM_PATH_SLASH \
282
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[3], GRPC_MDELEM_STORAGE_STATIC))
288
+ #define GRPC_MDELEM_PATH_SLASH \
289
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[3].data(), \
290
+ GRPC_MDELEM_STORAGE_STATIC))
283
291
  /* ":path": "/index.html" */
284
- #define GRPC_MDELEM_PATH_SLASH_INDEX_DOT_HTML \
285
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[4], GRPC_MDELEM_STORAGE_STATIC))
292
+ #define GRPC_MDELEM_PATH_SLASH_INDEX_DOT_HTML \
293
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[4].data(), \
294
+ GRPC_MDELEM_STORAGE_STATIC))
286
295
  /* ":scheme": "http" */
287
- #define GRPC_MDELEM_SCHEME_HTTP \
288
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[5], GRPC_MDELEM_STORAGE_STATIC))
296
+ #define GRPC_MDELEM_SCHEME_HTTP \
297
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[5].data(), \
298
+ GRPC_MDELEM_STORAGE_STATIC))
289
299
  /* ":scheme": "https" */
290
- #define GRPC_MDELEM_SCHEME_HTTPS \
291
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[6], GRPC_MDELEM_STORAGE_STATIC))
300
+ #define GRPC_MDELEM_SCHEME_HTTPS \
301
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[6].data(), \
302
+ GRPC_MDELEM_STORAGE_STATIC))
292
303
  /* ":status": "200" */
293
- #define GRPC_MDELEM_STATUS_200 \
294
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[7], GRPC_MDELEM_STORAGE_STATIC))
304
+ #define GRPC_MDELEM_STATUS_200 \
305
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[7].data(), \
306
+ GRPC_MDELEM_STORAGE_STATIC))
295
307
  /* ":status": "204" */
296
- #define GRPC_MDELEM_STATUS_204 \
297
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[8], GRPC_MDELEM_STORAGE_STATIC))
308
+ #define GRPC_MDELEM_STATUS_204 \
309
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[8].data(), \
310
+ GRPC_MDELEM_STORAGE_STATIC))
298
311
  /* ":status": "206" */
299
- #define GRPC_MDELEM_STATUS_206 \
300
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[9], GRPC_MDELEM_STORAGE_STATIC))
312
+ #define GRPC_MDELEM_STATUS_206 \
313
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[9].data(), \
314
+ GRPC_MDELEM_STORAGE_STATIC))
301
315
  /* ":status": "304" */
302
- #define GRPC_MDELEM_STATUS_304 \
303
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[10], GRPC_MDELEM_STORAGE_STATIC))
316
+ #define GRPC_MDELEM_STATUS_304 \
317
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[10].data(), \
318
+ GRPC_MDELEM_STORAGE_STATIC))
304
319
  /* ":status": "400" */
305
- #define GRPC_MDELEM_STATUS_400 \
306
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[11], GRPC_MDELEM_STORAGE_STATIC))
320
+ #define GRPC_MDELEM_STATUS_400 \
321
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[11].data(), \
322
+ GRPC_MDELEM_STORAGE_STATIC))
307
323
  /* ":status": "404" */
308
- #define GRPC_MDELEM_STATUS_404 \
309
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[12], GRPC_MDELEM_STORAGE_STATIC))
324
+ #define GRPC_MDELEM_STATUS_404 \
325
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[12].data(), \
326
+ GRPC_MDELEM_STORAGE_STATIC))
310
327
  /* ":status": "500" */
311
- #define GRPC_MDELEM_STATUS_500 \
312
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[13], GRPC_MDELEM_STORAGE_STATIC))
328
+ #define GRPC_MDELEM_STATUS_500 \
329
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[13].data(), \
330
+ GRPC_MDELEM_STORAGE_STATIC))
313
331
  /* "accept-charset": "" */
314
- #define GRPC_MDELEM_ACCEPT_CHARSET_EMPTY \
315
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[14], GRPC_MDELEM_STORAGE_STATIC))
332
+ #define GRPC_MDELEM_ACCEPT_CHARSET_EMPTY \
333
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[14].data(), \
334
+ GRPC_MDELEM_STORAGE_STATIC))
316
335
  /* "accept-encoding": "gzip, deflate" */
317
- #define GRPC_MDELEM_ACCEPT_ENCODING_GZIP_COMMA_DEFLATE \
318
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[15], GRPC_MDELEM_STORAGE_STATIC))
336
+ #define GRPC_MDELEM_ACCEPT_ENCODING_GZIP_COMMA_DEFLATE \
337
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[15].data(), \
338
+ GRPC_MDELEM_STORAGE_STATIC))
319
339
  /* "accept-language": "" */
320
- #define GRPC_MDELEM_ACCEPT_LANGUAGE_EMPTY \
321
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[16], GRPC_MDELEM_STORAGE_STATIC))
340
+ #define GRPC_MDELEM_ACCEPT_LANGUAGE_EMPTY \
341
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[16].data(), \
342
+ GRPC_MDELEM_STORAGE_STATIC))
322
343
  /* "accept-ranges": "" */
323
- #define GRPC_MDELEM_ACCEPT_RANGES_EMPTY \
324
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[17], GRPC_MDELEM_STORAGE_STATIC))
344
+ #define GRPC_MDELEM_ACCEPT_RANGES_EMPTY \
345
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[17].data(), \
346
+ GRPC_MDELEM_STORAGE_STATIC))
325
347
  /* "accept": "" */
326
- #define GRPC_MDELEM_ACCEPT_EMPTY \
327
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[18], GRPC_MDELEM_STORAGE_STATIC))
348
+ #define GRPC_MDELEM_ACCEPT_EMPTY \
349
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[18].data(), \
350
+ GRPC_MDELEM_STORAGE_STATIC))
328
351
  /* "access-control-allow-origin": "" */
329
- #define GRPC_MDELEM_ACCESS_CONTROL_ALLOW_ORIGIN_EMPTY \
330
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[19], GRPC_MDELEM_STORAGE_STATIC))
352
+ #define GRPC_MDELEM_ACCESS_CONTROL_ALLOW_ORIGIN_EMPTY \
353
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[19].data(), \
354
+ GRPC_MDELEM_STORAGE_STATIC))
331
355
  /* "age": "" */
332
- #define GRPC_MDELEM_AGE_EMPTY \
333
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[20], GRPC_MDELEM_STORAGE_STATIC))
356
+ #define GRPC_MDELEM_AGE_EMPTY \
357
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[20].data(), \
358
+ GRPC_MDELEM_STORAGE_STATIC))
334
359
  /* "allow": "" */
335
- #define GRPC_MDELEM_ALLOW_EMPTY \
336
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[21], GRPC_MDELEM_STORAGE_STATIC))
360
+ #define GRPC_MDELEM_ALLOW_EMPTY \
361
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[21].data(), \
362
+ GRPC_MDELEM_STORAGE_STATIC))
337
363
  /* "authorization": "" */
338
- #define GRPC_MDELEM_AUTHORIZATION_EMPTY \
339
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[22], GRPC_MDELEM_STORAGE_STATIC))
364
+ #define GRPC_MDELEM_AUTHORIZATION_EMPTY \
365
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[22].data(), \
366
+ GRPC_MDELEM_STORAGE_STATIC))
340
367
  /* "cache-control": "" */
341
- #define GRPC_MDELEM_CACHE_CONTROL_EMPTY \
342
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[23], GRPC_MDELEM_STORAGE_STATIC))
368
+ #define GRPC_MDELEM_CACHE_CONTROL_EMPTY \
369
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[23].data(), \
370
+ GRPC_MDELEM_STORAGE_STATIC))
343
371
  /* "content-disposition": "" */
344
- #define GRPC_MDELEM_CONTENT_DISPOSITION_EMPTY \
345
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[24], GRPC_MDELEM_STORAGE_STATIC))
372
+ #define GRPC_MDELEM_CONTENT_DISPOSITION_EMPTY \
373
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[24].data(), \
374
+ GRPC_MDELEM_STORAGE_STATIC))
346
375
  /* "content-encoding": "" */
347
- #define GRPC_MDELEM_CONTENT_ENCODING_EMPTY \
348
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[25], GRPC_MDELEM_STORAGE_STATIC))
376
+ #define GRPC_MDELEM_CONTENT_ENCODING_EMPTY \
377
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[25].data(), \
378
+ GRPC_MDELEM_STORAGE_STATIC))
349
379
  /* "content-language": "" */
350
- #define GRPC_MDELEM_CONTENT_LANGUAGE_EMPTY \
351
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[26], GRPC_MDELEM_STORAGE_STATIC))
380
+ #define GRPC_MDELEM_CONTENT_LANGUAGE_EMPTY \
381
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[26].data(), \
382
+ GRPC_MDELEM_STORAGE_STATIC))
352
383
  /* "content-length": "" */
353
- #define GRPC_MDELEM_CONTENT_LENGTH_EMPTY \
354
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[27], GRPC_MDELEM_STORAGE_STATIC))
384
+ #define GRPC_MDELEM_CONTENT_LENGTH_EMPTY \
385
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[27].data(), \
386
+ GRPC_MDELEM_STORAGE_STATIC))
355
387
  /* "content-location": "" */
356
- #define GRPC_MDELEM_CONTENT_LOCATION_EMPTY \
357
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[28], GRPC_MDELEM_STORAGE_STATIC))
388
+ #define GRPC_MDELEM_CONTENT_LOCATION_EMPTY \
389
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[28].data(), \
390
+ GRPC_MDELEM_STORAGE_STATIC))
358
391
  /* "content-range": "" */
359
- #define GRPC_MDELEM_CONTENT_RANGE_EMPTY \
360
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[29], GRPC_MDELEM_STORAGE_STATIC))
392
+ #define GRPC_MDELEM_CONTENT_RANGE_EMPTY \
393
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[29].data(), \
394
+ GRPC_MDELEM_STORAGE_STATIC))
361
395
  /* "content-type": "" */
362
- #define GRPC_MDELEM_CONTENT_TYPE_EMPTY \
363
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[30], GRPC_MDELEM_STORAGE_STATIC))
396
+ #define GRPC_MDELEM_CONTENT_TYPE_EMPTY \
397
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[30].data(), \
398
+ GRPC_MDELEM_STORAGE_STATIC))
364
399
  /* "cookie": "" */
365
- #define GRPC_MDELEM_COOKIE_EMPTY \
366
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[31], GRPC_MDELEM_STORAGE_STATIC))
400
+ #define GRPC_MDELEM_COOKIE_EMPTY \
401
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[31].data(), \
402
+ GRPC_MDELEM_STORAGE_STATIC))
367
403
  /* "date": "" */
368
- #define GRPC_MDELEM_DATE_EMPTY \
369
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[32], GRPC_MDELEM_STORAGE_STATIC))
404
+ #define GRPC_MDELEM_DATE_EMPTY \
405
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[32].data(), \
406
+ GRPC_MDELEM_STORAGE_STATIC))
370
407
  /* "etag": "" */
371
- #define GRPC_MDELEM_ETAG_EMPTY \
372
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[33], GRPC_MDELEM_STORAGE_STATIC))
408
+ #define GRPC_MDELEM_ETAG_EMPTY \
409
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[33].data(), \
410
+ GRPC_MDELEM_STORAGE_STATIC))
373
411
  /* "expect": "" */
374
- #define GRPC_MDELEM_EXPECT_EMPTY \
375
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[34], GRPC_MDELEM_STORAGE_STATIC))
412
+ #define GRPC_MDELEM_EXPECT_EMPTY \
413
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[34].data(), \
414
+ GRPC_MDELEM_STORAGE_STATIC))
376
415
  /* "expires": "" */
377
- #define GRPC_MDELEM_EXPIRES_EMPTY \
378
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[35], GRPC_MDELEM_STORAGE_STATIC))
416
+ #define GRPC_MDELEM_EXPIRES_EMPTY \
417
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[35].data(), \
418
+ GRPC_MDELEM_STORAGE_STATIC))
379
419
  /* "from": "" */
380
- #define GRPC_MDELEM_FROM_EMPTY \
381
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[36], GRPC_MDELEM_STORAGE_STATIC))
420
+ #define GRPC_MDELEM_FROM_EMPTY \
421
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[36].data(), \
422
+ GRPC_MDELEM_STORAGE_STATIC))
382
423
  /* "host": "" */
383
- #define GRPC_MDELEM_HOST_EMPTY \
384
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[37], GRPC_MDELEM_STORAGE_STATIC))
424
+ #define GRPC_MDELEM_HOST_EMPTY \
425
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[37].data(), \
426
+ GRPC_MDELEM_STORAGE_STATIC))
385
427
  /* "if-match": "" */
386
- #define GRPC_MDELEM_IF_MATCH_EMPTY \
387
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[38], GRPC_MDELEM_STORAGE_STATIC))
428
+ #define GRPC_MDELEM_IF_MATCH_EMPTY \
429
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[38].data(), \
430
+ GRPC_MDELEM_STORAGE_STATIC))
388
431
  /* "if-modified-since": "" */
389
- #define GRPC_MDELEM_IF_MODIFIED_SINCE_EMPTY \
390
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[39], GRPC_MDELEM_STORAGE_STATIC))
432
+ #define GRPC_MDELEM_IF_MODIFIED_SINCE_EMPTY \
433
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[39].data(), \
434
+ GRPC_MDELEM_STORAGE_STATIC))
391
435
  /* "if-none-match": "" */
392
- #define GRPC_MDELEM_IF_NONE_MATCH_EMPTY \
393
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[40], GRPC_MDELEM_STORAGE_STATIC))
436
+ #define GRPC_MDELEM_IF_NONE_MATCH_EMPTY \
437
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[40].data(), \
438
+ GRPC_MDELEM_STORAGE_STATIC))
394
439
  /* "if-range": "" */
395
- #define GRPC_MDELEM_IF_RANGE_EMPTY \
396
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[41], GRPC_MDELEM_STORAGE_STATIC))
440
+ #define GRPC_MDELEM_IF_RANGE_EMPTY \
441
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[41].data(), \
442
+ GRPC_MDELEM_STORAGE_STATIC))
397
443
  /* "if-unmodified-since": "" */
398
- #define GRPC_MDELEM_IF_UNMODIFIED_SINCE_EMPTY \
399
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[42], GRPC_MDELEM_STORAGE_STATIC))
444
+ #define GRPC_MDELEM_IF_UNMODIFIED_SINCE_EMPTY \
445
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[42].data(), \
446
+ GRPC_MDELEM_STORAGE_STATIC))
400
447
  /* "last-modified": "" */
401
- #define GRPC_MDELEM_LAST_MODIFIED_EMPTY \
402
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[43], GRPC_MDELEM_STORAGE_STATIC))
448
+ #define GRPC_MDELEM_LAST_MODIFIED_EMPTY \
449
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[43].data(), \
450
+ GRPC_MDELEM_STORAGE_STATIC))
403
451
  /* "link": "" */
404
- #define GRPC_MDELEM_LINK_EMPTY \
405
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[44], GRPC_MDELEM_STORAGE_STATIC))
452
+ #define GRPC_MDELEM_LINK_EMPTY \
453
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[44].data(), \
454
+ GRPC_MDELEM_STORAGE_STATIC))
406
455
  /* "location": "" */
407
- #define GRPC_MDELEM_LOCATION_EMPTY \
408
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[45], GRPC_MDELEM_STORAGE_STATIC))
456
+ #define GRPC_MDELEM_LOCATION_EMPTY \
457
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[45].data(), \
458
+ GRPC_MDELEM_STORAGE_STATIC))
409
459
  /* "max-forwards": "" */
410
- #define GRPC_MDELEM_MAX_FORWARDS_EMPTY \
411
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[46], GRPC_MDELEM_STORAGE_STATIC))
460
+ #define GRPC_MDELEM_MAX_FORWARDS_EMPTY \
461
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[46].data(), \
462
+ GRPC_MDELEM_STORAGE_STATIC))
412
463
  /* "proxy-authenticate": "" */
413
- #define GRPC_MDELEM_PROXY_AUTHENTICATE_EMPTY \
414
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[47], GRPC_MDELEM_STORAGE_STATIC))
464
+ #define GRPC_MDELEM_PROXY_AUTHENTICATE_EMPTY \
465
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[47].data(), \
466
+ GRPC_MDELEM_STORAGE_STATIC))
415
467
  /* "proxy-authorization": "" */
416
- #define GRPC_MDELEM_PROXY_AUTHORIZATION_EMPTY \
417
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[48], GRPC_MDELEM_STORAGE_STATIC))
468
+ #define GRPC_MDELEM_PROXY_AUTHORIZATION_EMPTY \
469
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[48].data(), \
470
+ GRPC_MDELEM_STORAGE_STATIC))
418
471
  /* "range": "" */
419
- #define GRPC_MDELEM_RANGE_EMPTY \
420
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[49], GRPC_MDELEM_STORAGE_STATIC))
472
+ #define GRPC_MDELEM_RANGE_EMPTY \
473
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[49].data(), \
474
+ GRPC_MDELEM_STORAGE_STATIC))
421
475
  /* "referer": "" */
422
- #define GRPC_MDELEM_REFERER_EMPTY \
423
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[50], GRPC_MDELEM_STORAGE_STATIC))
476
+ #define GRPC_MDELEM_REFERER_EMPTY \
477
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[50].data(), \
478
+ GRPC_MDELEM_STORAGE_STATIC))
424
479
  /* "refresh": "" */
425
- #define GRPC_MDELEM_REFRESH_EMPTY \
426
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[51], GRPC_MDELEM_STORAGE_STATIC))
480
+ #define GRPC_MDELEM_REFRESH_EMPTY \
481
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[51].data(), \
482
+ GRPC_MDELEM_STORAGE_STATIC))
427
483
  /* "retry-after": "" */
428
- #define GRPC_MDELEM_RETRY_AFTER_EMPTY \
429
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[52], GRPC_MDELEM_STORAGE_STATIC))
484
+ #define GRPC_MDELEM_RETRY_AFTER_EMPTY \
485
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[52].data(), \
486
+ GRPC_MDELEM_STORAGE_STATIC))
430
487
  /* "server": "" */
431
- #define GRPC_MDELEM_SERVER_EMPTY \
432
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[53], GRPC_MDELEM_STORAGE_STATIC))
488
+ #define GRPC_MDELEM_SERVER_EMPTY \
489
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[53].data(), \
490
+ GRPC_MDELEM_STORAGE_STATIC))
433
491
  /* "set-cookie": "" */
434
- #define GRPC_MDELEM_SET_COOKIE_EMPTY \
435
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[54], GRPC_MDELEM_STORAGE_STATIC))
492
+ #define GRPC_MDELEM_SET_COOKIE_EMPTY \
493
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[54].data(), \
494
+ GRPC_MDELEM_STORAGE_STATIC))
436
495
  /* "strict-transport-security": "" */
437
- #define GRPC_MDELEM_STRICT_TRANSPORT_SECURITY_EMPTY \
438
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[55], GRPC_MDELEM_STORAGE_STATIC))
496
+ #define GRPC_MDELEM_STRICT_TRANSPORT_SECURITY_EMPTY \
497
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[55].data(), \
498
+ GRPC_MDELEM_STORAGE_STATIC))
439
499
  /* "transfer-encoding": "" */
440
- #define GRPC_MDELEM_TRANSFER_ENCODING_EMPTY \
441
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[56], GRPC_MDELEM_STORAGE_STATIC))
500
+ #define GRPC_MDELEM_TRANSFER_ENCODING_EMPTY \
501
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[56].data(), \
502
+ GRPC_MDELEM_STORAGE_STATIC))
442
503
  /* "user-agent": "" */
443
- #define GRPC_MDELEM_USER_AGENT_EMPTY \
444
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[57], GRPC_MDELEM_STORAGE_STATIC))
504
+ #define GRPC_MDELEM_USER_AGENT_EMPTY \
505
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[57].data(), \
506
+ GRPC_MDELEM_STORAGE_STATIC))
445
507
  /* "vary": "" */
446
- #define GRPC_MDELEM_VARY_EMPTY \
447
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[58], GRPC_MDELEM_STORAGE_STATIC))
508
+ #define GRPC_MDELEM_VARY_EMPTY \
509
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[58].data(), \
510
+ GRPC_MDELEM_STORAGE_STATIC))
448
511
  /* "via": "" */
449
- #define GRPC_MDELEM_VIA_EMPTY \
450
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[59], GRPC_MDELEM_STORAGE_STATIC))
512
+ #define GRPC_MDELEM_VIA_EMPTY \
513
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[59].data(), \
514
+ GRPC_MDELEM_STORAGE_STATIC))
451
515
  /* "www-authenticate": "" */
452
- #define GRPC_MDELEM_WWW_AUTHENTICATE_EMPTY \
453
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[60], GRPC_MDELEM_STORAGE_STATIC))
516
+ #define GRPC_MDELEM_WWW_AUTHENTICATE_EMPTY \
517
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[60].data(), \
518
+ GRPC_MDELEM_STORAGE_STATIC))
454
519
  /* "grpc-status": "0" */
455
- #define GRPC_MDELEM_GRPC_STATUS_0 \
456
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[61], GRPC_MDELEM_STORAGE_STATIC))
520
+ #define GRPC_MDELEM_GRPC_STATUS_0 \
521
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[61].data(), \
522
+ GRPC_MDELEM_STORAGE_STATIC))
457
523
  /* "grpc-status": "1" */
458
- #define GRPC_MDELEM_GRPC_STATUS_1 \
459
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[62], GRPC_MDELEM_STORAGE_STATIC))
524
+ #define GRPC_MDELEM_GRPC_STATUS_1 \
525
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[62].data(), \
526
+ GRPC_MDELEM_STORAGE_STATIC))
460
527
  /* "grpc-status": "2" */
461
- #define GRPC_MDELEM_GRPC_STATUS_2 \
462
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[63], GRPC_MDELEM_STORAGE_STATIC))
528
+ #define GRPC_MDELEM_GRPC_STATUS_2 \
529
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[63].data(), \
530
+ GRPC_MDELEM_STORAGE_STATIC))
463
531
  /* "grpc-encoding": "identity" */
464
- #define GRPC_MDELEM_GRPC_ENCODING_IDENTITY \
465
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[64], GRPC_MDELEM_STORAGE_STATIC))
532
+ #define GRPC_MDELEM_GRPC_ENCODING_IDENTITY \
533
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[64].data(), \
534
+ GRPC_MDELEM_STORAGE_STATIC))
466
535
  /* "grpc-encoding": "gzip" */
467
- #define GRPC_MDELEM_GRPC_ENCODING_GZIP \
468
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[65], GRPC_MDELEM_STORAGE_STATIC))
536
+ #define GRPC_MDELEM_GRPC_ENCODING_GZIP \
537
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[65].data(), \
538
+ GRPC_MDELEM_STORAGE_STATIC))
469
539
  /* "grpc-encoding": "deflate" */
470
- #define GRPC_MDELEM_GRPC_ENCODING_DEFLATE \
471
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[66], GRPC_MDELEM_STORAGE_STATIC))
540
+ #define GRPC_MDELEM_GRPC_ENCODING_DEFLATE \
541
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[66].data(), \
542
+ GRPC_MDELEM_STORAGE_STATIC))
472
543
  /* "te": "trailers" */
473
- #define GRPC_MDELEM_TE_TRAILERS \
474
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[67], GRPC_MDELEM_STORAGE_STATIC))
544
+ #define GRPC_MDELEM_TE_TRAILERS \
545
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[67].data(), \
546
+ GRPC_MDELEM_STORAGE_STATIC))
475
547
  /* "content-type": "application/grpc" */
476
- #define GRPC_MDELEM_CONTENT_TYPE_APPLICATION_SLASH_GRPC \
477
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[68], GRPC_MDELEM_STORAGE_STATIC))
548
+ #define GRPC_MDELEM_CONTENT_TYPE_APPLICATION_SLASH_GRPC \
549
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[68].data(), \
550
+ GRPC_MDELEM_STORAGE_STATIC))
478
551
  /* ":scheme": "grpc" */
479
- #define GRPC_MDELEM_SCHEME_GRPC \
480
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[69], GRPC_MDELEM_STORAGE_STATIC))
552
+ #define GRPC_MDELEM_SCHEME_GRPC \
553
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[69].data(), \
554
+ GRPC_MDELEM_STORAGE_STATIC))
481
555
  /* ":method": "PUT" */
482
- #define GRPC_MDELEM_METHOD_PUT \
483
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[70], GRPC_MDELEM_STORAGE_STATIC))
556
+ #define GRPC_MDELEM_METHOD_PUT \
557
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[70].data(), \
558
+ GRPC_MDELEM_STORAGE_STATIC))
484
559
  /* "accept-encoding": "" */
485
- #define GRPC_MDELEM_ACCEPT_ENCODING_EMPTY \
486
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[71], GRPC_MDELEM_STORAGE_STATIC))
560
+ #define GRPC_MDELEM_ACCEPT_ENCODING_EMPTY \
561
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[71].data(), \
562
+ GRPC_MDELEM_STORAGE_STATIC))
487
563
  /* "content-encoding": "identity" */
488
- #define GRPC_MDELEM_CONTENT_ENCODING_IDENTITY \
489
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[72], GRPC_MDELEM_STORAGE_STATIC))
564
+ #define GRPC_MDELEM_CONTENT_ENCODING_IDENTITY \
565
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[72].data(), \
566
+ GRPC_MDELEM_STORAGE_STATIC))
490
567
  /* "content-encoding": "gzip" */
491
- #define GRPC_MDELEM_CONTENT_ENCODING_GZIP \
492
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[73], GRPC_MDELEM_STORAGE_STATIC))
568
+ #define GRPC_MDELEM_CONTENT_ENCODING_GZIP \
569
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[73].data(), \
570
+ GRPC_MDELEM_STORAGE_STATIC))
493
571
  /* "lb-token": "" */
494
- #define GRPC_MDELEM_LB_TOKEN_EMPTY \
495
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[74], GRPC_MDELEM_STORAGE_STATIC))
572
+ #define GRPC_MDELEM_LB_TOKEN_EMPTY \
573
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[74].data(), \
574
+ GRPC_MDELEM_STORAGE_STATIC))
496
575
  /* "lb-cost-bin": "" */
497
- #define GRPC_MDELEM_LB_COST_BIN_EMPTY \
498
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[75], GRPC_MDELEM_STORAGE_STATIC))
576
+ #define GRPC_MDELEM_LB_COST_BIN_EMPTY \
577
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[75].data(), \
578
+ GRPC_MDELEM_STORAGE_STATIC))
499
579
  /* "grpc-accept-encoding": "identity" */
500
- #define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY \
501
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[76], GRPC_MDELEM_STORAGE_STATIC))
580
+ #define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY \
581
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[76].data(), \
582
+ GRPC_MDELEM_STORAGE_STATIC))
502
583
  /* "grpc-accept-encoding": "deflate" */
503
- #define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_DEFLATE \
504
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[77], GRPC_MDELEM_STORAGE_STATIC))
584
+ #define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_DEFLATE \
585
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[77].data(), \
586
+ GRPC_MDELEM_STORAGE_STATIC))
505
587
  /* "grpc-accept-encoding": "identity,deflate" */
506
588
  #define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY_COMMA_DEFLATE \
507
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[78], GRPC_MDELEM_STORAGE_STATIC))
589
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[78].data(), \
590
+ GRPC_MDELEM_STORAGE_STATIC))
508
591
  /* "grpc-accept-encoding": "gzip" */
509
- #define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_GZIP \
510
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[79], GRPC_MDELEM_STORAGE_STATIC))
592
+ #define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_GZIP \
593
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[79].data(), \
594
+ GRPC_MDELEM_STORAGE_STATIC))
511
595
  /* "grpc-accept-encoding": "identity,gzip" */
512
596
  #define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY_COMMA_GZIP \
513
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[80], GRPC_MDELEM_STORAGE_STATIC))
597
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[80].data(), \
598
+ GRPC_MDELEM_STORAGE_STATIC))
514
599
  /* "grpc-accept-encoding": "deflate,gzip" */
515
600
  #define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_DEFLATE_COMMA_GZIP \
516
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[81], GRPC_MDELEM_STORAGE_STATIC))
601
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[81].data(), \
602
+ GRPC_MDELEM_STORAGE_STATIC))
517
603
  /* "grpc-accept-encoding": "identity,deflate,gzip" */
518
604
  #define GRPC_MDELEM_GRPC_ACCEPT_ENCODING_IDENTITY_COMMA_DEFLATE_COMMA_GZIP \
519
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[82], GRPC_MDELEM_STORAGE_STATIC))
605
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[82].data(), \
606
+ GRPC_MDELEM_STORAGE_STATIC))
520
607
  /* "accept-encoding": "identity" */
521
- #define GRPC_MDELEM_ACCEPT_ENCODING_IDENTITY \
522
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[83], GRPC_MDELEM_STORAGE_STATIC))
608
+ #define GRPC_MDELEM_ACCEPT_ENCODING_IDENTITY \
609
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[83].data(), \
610
+ GRPC_MDELEM_STORAGE_STATIC))
523
611
  /* "accept-encoding": "gzip" */
524
- #define GRPC_MDELEM_ACCEPT_ENCODING_GZIP \
525
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[84], GRPC_MDELEM_STORAGE_STATIC))
612
+ #define GRPC_MDELEM_ACCEPT_ENCODING_GZIP \
613
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[84].data(), \
614
+ GRPC_MDELEM_STORAGE_STATIC))
526
615
  /* "accept-encoding": "identity,gzip" */
527
- #define GRPC_MDELEM_ACCEPT_ENCODING_IDENTITY_COMMA_GZIP \
528
- (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[85], GRPC_MDELEM_STORAGE_STATIC))
616
+ #define GRPC_MDELEM_ACCEPT_ENCODING_IDENTITY_COMMA_GZIP \
617
+ (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table[85].data(), \
618
+ GRPC_MDELEM_STORAGE_STATIC))
529
619
 
530
- grpc_mdelem grpc_static_mdelem_for_static_strings(int a, int b);
620
+ grpc_mdelem grpc_static_mdelem_for_static_strings(intptr_t a, intptr_t b);
531
621
  typedef enum {
532
622
  GRPC_BATCH_PATH,
533
623
  GRPC_BATCH_METHOD,
@@ -586,22 +676,24 @@ typedef union {
586
676
  } named;
587
677
  } grpc_metadata_batch_callouts;
588
678
 
589
- #define GRPC_BATCH_INDEX_OF(slice) \
590
- (GRPC_IS_STATIC_METADATA_STRING((slice)) \
591
- ? (grpc_metadata_batch_callouts_index)GPR_CLAMP( \
592
- GRPC_STATIC_METADATA_INDEX((slice)), 0, \
593
- GRPC_BATCH_CALLOUTS_COUNT) \
679
+ #define GRPC_BATCH_INDEX_OF(slice) \
680
+ (GRPC_IS_STATIC_METADATA_STRING((slice)) \
681
+ ? static_cast<grpc_metadata_batch_callouts_index>( \
682
+ GPR_CLAMP(GRPC_STATIC_METADATA_INDEX((slice)), 0, \
683
+ static_cast<intptr_t>(GRPC_BATCH_CALLOUTS_COUNT))) \
594
684
  : GRPC_BATCH_CALLOUTS_COUNT)
595
685
 
596
686
  extern const uint8_t grpc_static_accept_encoding_metadata[8];
597
- #define GRPC_MDELEM_ACCEPT_ENCODING_FOR_ALGORITHMS(algs) \
598
- (GRPC_MAKE_MDELEM( \
599
- &grpc_static_mdelem_table[grpc_static_accept_encoding_metadata[(algs)]], \
687
+ #define GRPC_MDELEM_ACCEPT_ENCODING_FOR_ALGORITHMS(algs) \
688
+ (GRPC_MAKE_MDELEM( \
689
+ &grpc_static_mdelem_table[grpc_static_accept_encoding_metadata[(algs)]] \
690
+ .data(), \
600
691
  GRPC_MDELEM_STORAGE_STATIC))
601
692
 
602
693
  extern const uint8_t grpc_static_accept_stream_encoding_metadata[4];
603
694
  #define GRPC_MDELEM_ACCEPT_STREAM_ENCODING_FOR_ALGORITHMS(algs) \
604
695
  (GRPC_MAKE_MDELEM(&grpc_static_mdelem_table \
605
- [grpc_static_accept_stream_encoding_metadata[(algs)]], \
696
+ [grpc_static_accept_stream_encoding_metadata[(algs)]] \
697
+ .data(), \
606
698
  GRPC_MDELEM_STORAGE_STATIC))
607
699
  #endif /* GRPC_CORE_LIB_TRANSPORT_STATIC_METADATA_H */