gitlab-grpc 1.42.1.gitlab
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +1 -0
- data/Makefile +3004 -0
- data/etc/roots.pem +4337 -0
- data/include/grpc/byte_buffer.h +27 -0
- data/include/grpc/byte_buffer_reader.h +26 -0
- data/include/grpc/census.h +40 -0
- data/include/grpc/compression.h +75 -0
- data/include/grpc/event_engine/README.md +38 -0
- data/include/grpc/event_engine/endpoint_config.h +43 -0
- data/include/grpc/event_engine/event_engine.h +375 -0
- data/include/grpc/event_engine/internal/memory_allocator_impl.h +98 -0
- data/include/grpc/event_engine/memory_allocator.h +210 -0
- data/include/grpc/event_engine/port.h +39 -0
- data/include/grpc/fork.h +26 -0
- data/include/grpc/grpc.h +579 -0
- data/include/grpc/grpc_cronet.h +38 -0
- data/include/grpc/grpc_posix.h +62 -0
- data/include/grpc/grpc_security.h +1142 -0
- data/include/grpc/grpc_security_constants.h +165 -0
- data/include/grpc/impl/codegen/README.md +22 -0
- data/include/grpc/impl/codegen/atm.h +97 -0
- data/include/grpc/impl/codegen/atm_gcc_atomic.h +93 -0
- data/include/grpc/impl/codegen/atm_gcc_sync.h +87 -0
- data/include/grpc/impl/codegen/atm_windows.h +134 -0
- data/include/grpc/impl/codegen/byte_buffer.h +103 -0
- data/include/grpc/impl/codegen/byte_buffer_reader.h +44 -0
- data/include/grpc/impl/codegen/compression_types.h +110 -0
- data/include/grpc/impl/codegen/connectivity_state.h +46 -0
- data/include/grpc/impl/codegen/fork.h +50 -0
- data/include/grpc/impl/codegen/gpr_slice.h +71 -0
- data/include/grpc/impl/codegen/gpr_types.h +61 -0
- data/include/grpc/impl/codegen/grpc_types.h +813 -0
- data/include/grpc/impl/codegen/log.h +112 -0
- data/include/grpc/impl/codegen/port_platform.h +719 -0
- data/include/grpc/impl/codegen/propagation_bits.h +54 -0
- data/include/grpc/impl/codegen/slice.h +129 -0
- data/include/grpc/impl/codegen/status.h +156 -0
- data/include/grpc/impl/codegen/sync.h +68 -0
- data/include/grpc/impl/codegen/sync_abseil.h +38 -0
- data/include/grpc/impl/codegen/sync_custom.h +40 -0
- data/include/grpc/impl/codegen/sync_generic.h +51 -0
- data/include/grpc/impl/codegen/sync_posix.h +54 -0
- data/include/grpc/impl/codegen/sync_windows.h +42 -0
- data/include/grpc/load_reporting.h +48 -0
- data/include/grpc/module.modulemap +64 -0
- data/include/grpc/slice.h +172 -0
- data/include/grpc/slice_buffer.h +84 -0
- data/include/grpc/status.h +26 -0
- data/include/grpc/support/alloc.h +52 -0
- data/include/grpc/support/atm.h +26 -0
- data/include/grpc/support/atm_gcc_atomic.h +26 -0
- data/include/grpc/support/atm_gcc_sync.h +26 -0
- data/include/grpc/support/atm_windows.h +26 -0
- data/include/grpc/support/cpu.h +44 -0
- data/include/grpc/support/log.h +26 -0
- data/include/grpc/support/log_windows.h +38 -0
- data/include/grpc/support/port_platform.h +24 -0
- data/include/grpc/support/string_util.h +51 -0
- data/include/grpc/support/sync.h +282 -0
- data/include/grpc/support/sync_abseil.h +26 -0
- data/include/grpc/support/sync_custom.h +26 -0
- data/include/grpc/support/sync_generic.h +26 -0
- data/include/grpc/support/sync_posix.h +26 -0
- data/include/grpc/support/sync_windows.h +26 -0
- data/include/grpc/support/thd_id.h +44 -0
- data/include/grpc/support/time.h +92 -0
- data/include/grpc/support/workaround_list.h +31 -0
- data/src/core/ext/filters/census/grpc_context.cc +39 -0
- data/src/core/ext/filters/client_channel/backend_metric.cc +80 -0
- data/src/core/ext/filters/client_channel/backend_metric.h +36 -0
- data/src/core/ext/filters/client_channel/backup_poller.cc +183 -0
- data/src/core/ext/filters/client_channel/backup_poller.h +42 -0
- data/src/core/ext/filters/client_channel/channel_connectivity.cc +220 -0
- data/src/core/ext/filters/client_channel/client_channel.cc +3119 -0
- data/src/core/ext/filters/client_channel/client_channel.h +581 -0
- data/src/core/ext/filters/client_channel/client_channel_channelz.cc +96 -0
- data/src/core/ext/filters/client_channel/client_channel_channelz.h +75 -0
- data/src/core/ext/filters/client_channel/client_channel_factory.cc +56 -0
- data/src/core/ext/filters/client_channel/client_channel_factory.h +46 -0
- data/src/core/ext/filters/client_channel/client_channel_plugin.cc +74 -0
- data/src/core/ext/filters/client_channel/config_selector.cc +59 -0
- data/src/core/ext/filters/client_channel/config_selector.h +145 -0
- data/src/core/ext/filters/client_channel/connector.h +79 -0
- data/src/core/ext/filters/client_channel/dynamic_filters.cc +190 -0
- data/src/core/ext/filters/client_channel/dynamic_filters.h +99 -0
- data/src/core/ext/filters/client_channel/global_subchannel_pool.cc +83 -0
- data/src/core/ext/filters/client_channel/global_subchannel_pool.h +72 -0
- data/src/core/ext/filters/client_channel/health/health_check_client.cc +619 -0
- data/src/core/ext/filters/client_channel/health/health_check_client.h +177 -0
- data/src/core/ext/filters/client_channel/http_connect_handshaker.cc +392 -0
- data/src/core/ext/filters/client_channel/http_connect_handshaker.h +42 -0
- data/src/core/ext/filters/client_channel/http_proxy.cc +234 -0
- data/src/core/ext/filters/client_channel/http_proxy.h +28 -0
- data/src/core/ext/filters/client_channel/lb_policy/address_filtering.cc +96 -0
- data/src/core/ext/filters/client_channel/lb_policy/address_filtering.h +101 -0
- data/src/core/ext/filters/client_channel/lb_policy/child_policy_handler.cc +304 -0
- data/src/core/ext/filters/client_channel/lb_policy/child_policy_handler.h +83 -0
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.cc +148 -0
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/client_load_reporting_filter.h +29 -0
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc +1866 -0
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.h +47 -0
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_balancer_addresses.cc +76 -0
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_balancer_addresses.h +37 -0
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel.h +44 -0
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_channel_secure.cc +83 -0
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.cc +93 -0
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb_client_stats.h +76 -0
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.cc +192 -0
- data/src/core/ext/filters/client_channel/lb_policy/grpclb/load_balancer_api.h +74 -0
- data/src/core/ext/filters/client_channel/lb_policy/pick_first/pick_first.cc +522 -0
- data/src/core/ext/filters/client_channel/lb_policy/priority/priority.cc +918 -0
- data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.cc +757 -0
- data/src/core/ext/filters/client_channel/lb_policy/ring_hash/ring_hash.h +37 -0
- data/src/core/ext/filters/client_channel/lb_policy/rls/rls.cc +2502 -0
- data/src/core/ext/filters/client_channel/lb_policy/round_robin/round_robin.cc +503 -0
- data/src/core/ext/filters/client_channel/lb_policy/subchannel_list.h +426 -0
- data/src/core/ext/filters/client_channel/lb_policy/weighted_target/weighted_target.cc +741 -0
- data/src/core/ext/filters/client_channel/lb_policy/xds/cds.cc +745 -0
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds.h +60 -0
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_channel_args.h +29 -0
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_impl.cc +795 -0
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_manager.cc +701 -0
- data/src/core/ext/filters/client_channel/lb_policy/xds/xds_cluster_resolver.cc +1362 -0
- data/src/core/ext/filters/client_channel/lb_policy.cc +131 -0
- data/src/core/ext/filters/client_channel/lb_policy.h +425 -0
- data/src/core/ext/filters/client_channel/lb_policy_factory.h +48 -0
- data/src/core/ext/filters/client_channel/lb_policy_registry.cc +185 -0
- data/src/core/ext/filters/client_channel/lb_policy_registry.h +65 -0
- data/src/core/ext/filters/client_channel/local_subchannel_pool.cc +56 -0
- data/src/core/ext/filters/client_channel/local_subchannel_pool.h +58 -0
- data/src/core/ext/filters/client_channel/proxy_mapper.h +54 -0
- data/src/core/ext/filters/client_channel/proxy_mapper_registry.cc +89 -0
- data/src/core/ext/filters/client_channel/proxy_mapper_registry.h +50 -0
- data/src/core/ext/filters/client_channel/resolver/binder/binder_resolver.cc +139 -0
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/dns_resolver_ares.cc +526 -0
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver.h +74 -0
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_event_engine.cc +31 -0
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_posix.cc +110 -0
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_ev_driver_windows.cc +902 -0
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.cc +1203 -0
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper.h +122 -0
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_event_engine.cc +28 -0
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_posix.cc +29 -0
- data/src/core/ext/filters/client_channel/resolver/dns/c_ares/grpc_ares_wrapper_windows.cc +34 -0
- data/src/core/ext/filters/client_channel/resolver/dns/dns_resolver_selection.cc +28 -0
- data/src/core/ext/filters/client_channel/resolver/dns/dns_resolver_selection.h +29 -0
- data/src/core/ext/filters/client_channel/resolver/dns/native/dns_resolver.cc +332 -0
- data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.cc +380 -0
- data/src/core/ext/filters/client_channel/resolver/fake/fake_resolver.h +95 -0
- data/src/core/ext/filters/client_channel/resolver/google_c2p/google_c2p_resolver.cc +384 -0
- data/src/core/ext/filters/client_channel/resolver/sockaddr/sockaddr_resolver.cc +195 -0
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.cc +1002 -0
- data/src/core/ext/filters/client_channel/resolver/xds/xds_resolver.h +28 -0
- data/src/core/ext/filters/client_channel/resolver.cc +87 -0
- data/src/core/ext/filters/client_channel/resolver.h +136 -0
- data/src/core/ext/filters/client_channel/resolver_factory.h +75 -0
- data/src/core/ext/filters/client_channel/resolver_registry.cc +195 -0
- data/src/core/ext/filters/client_channel/resolver_registry.h +89 -0
- data/src/core/ext/filters/client_channel/resolver_result_parsing.cc +189 -0
- data/src/core/ext/filters/client_channel/resolver_result_parsing.h +99 -0
- data/src/core/ext/filters/client_channel/retry_filter.cc +2573 -0
- data/src/core/ext/filters/client_channel/retry_filter.h +30 -0
- data/src/core/ext/filters/client_channel/retry_service_config.cc +316 -0
- data/src/core/ext/filters/client_channel/retry_service_config.h +96 -0
- data/src/core/ext/filters/client_channel/retry_throttle.cc +162 -0
- data/src/core/ext/filters/client_channel/retry_throttle.h +79 -0
- data/src/core/ext/filters/client_channel/server_address.cc +170 -0
- data/src/core/ext/filters/client_channel/server_address.h +144 -0
- data/src/core/ext/filters/client_channel/service_config_channel_arg_filter.cc +156 -0
- data/src/core/ext/filters/client_channel/subchannel.cc +1021 -0
- data/src/core/ext/filters/client_channel/subchannel.h +382 -0
- data/src/core/ext/filters/client_channel/subchannel_interface.h +130 -0
- data/src/core/ext/filters/client_channel/subchannel_pool_interface.cc +126 -0
- data/src/core/ext/filters/client_channel/subchannel_pool_interface.h +106 -0
- data/src/core/ext/filters/client_idle/client_idle_filter.cc +264 -0
- data/src/core/ext/filters/client_idle/idle_filter_state.cc +96 -0
- data/src/core/ext/filters/client_idle/idle_filter_state.h +66 -0
- data/src/core/ext/filters/deadline/deadline_filter.cc +391 -0
- data/src/core/ext/filters/deadline/deadline_filter.h +86 -0
- data/src/core/ext/filters/fault_injection/fault_injection_filter.cc +503 -0
- data/src/core/ext/filters/fault_injection/fault_injection_filter.h +39 -0
- data/src/core/ext/filters/fault_injection/service_config_parser.cc +181 -0
- data/src/core/ext/filters/fault_injection/service_config_parser.h +85 -0
- data/src/core/ext/filters/http/client/http_client_filter.cc +604 -0
- data/src/core/ext/filters/http/client/http_client_filter.h +31 -0
- data/src/core/ext/filters/http/client_authority_filter.cc +159 -0
- data/src/core/ext/filters/http/client_authority_filter.h +34 -0
- data/src/core/ext/filters/http/http_filters_plugin.cc +90 -0
- data/src/core/ext/filters/http/message_compress/message_compress_filter.cc +553 -0
- data/src/core/ext/filters/http/message_compress/message_compress_filter.h +53 -0
- data/src/core/ext/filters/http/message_compress/message_decompress_filter.cc +398 -0
- data/src/core/ext/filters/http/message_compress/message_decompress_filter.h +31 -0
- data/src/core/ext/filters/http/server/http_server_filter.cc +537 -0
- data/src/core/ext/filters/http/server/http_server_filter.h +29 -0
- data/src/core/ext/filters/max_age/max_age_filter.cc +560 -0
- data/src/core/ext/filters/max_age/max_age_filter.h +26 -0
- data/src/core/ext/filters/message_size/message_size_filter.cc +402 -0
- data/src/core/ext/filters/message_size/message_size_filter.h +66 -0
- data/src/core/ext/service_config/service_config.cc +227 -0
- data/src/core/ext/service_config/service_config.h +127 -0
- data/src/core/ext/service_config/service_config_call_data.h +72 -0
- data/src/core/ext/service_config/service_config_parser.cc +89 -0
- data/src/core/ext/service_config/service_config_parser.h +97 -0
- data/src/core/ext/transport/chttp2/alpn/alpn.cc +45 -0
- data/src/core/ext/transport/chttp2/alpn/alpn.h +36 -0
- data/src/core/ext/transport/chttp2/client/chttp2_connector.cc +276 -0
- data/src/core/ext/transport/chttp2/client/chttp2_connector.h +77 -0
- data/src/core/ext/transport/chttp2/client/insecure/channel_create.cc +119 -0
- data/src/core/ext/transport/chttp2/client/insecure/channel_create_posix.cc +95 -0
- data/src/core/ext/transport/chttp2/client/secure/secure_channel_create.cc +189 -0
- data/src/core/ext/transport/chttp2/server/chttp2_server.cc +923 -0
- data/src/core/ext/transport/chttp2/server/chttp2_server.h +47 -0
- data/src/core/ext/transport/chttp2/server/insecure/server_chttp2.cc +53 -0
- data/src/core/ext/transport/chttp2/server/insecure/server_chttp2_posix.cc +83 -0
- data/src/core/ext/transport/chttp2/server/secure/server_secure_chttp2.cc +125 -0
- data/src/core/ext/transport/chttp2/transport/bin_decoder.cc +252 -0
- data/src/core/ext/transport/chttp2/transport/bin_decoder.h +57 -0
- data/src/core/ext/transport/chttp2/transport/bin_encoder.cc +231 -0
- data/src/core/ext/transport/chttp2/transport/bin_encoder.h +42 -0
- data/src/core/ext/transport/chttp2/transport/chttp2_plugin.cc +37 -0
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.cc +3351 -0
- data/src/core/ext/transport/chttp2/transport/chttp2_transport.h +66 -0
- data/src/core/ext/transport/chttp2/transport/context_list.cc +68 -0
- data/src/core/ext/transport/chttp2/transport/context_list.h +52 -0
- data/src/core/ext/transport/chttp2/transport/flow_control.cc +430 -0
- data/src/core/ext/transport/chttp2/transport/flow_control.h +488 -0
- data/src/core/ext/transport/chttp2/transport/frame.h +47 -0
- data/src/core/ext/transport/chttp2/transport/frame_data.cc +308 -0
- data/src/core/ext/transport/chttp2/transport/frame_data.h +83 -0
- data/src/core/ext/transport/chttp2/transport/frame_goaway.cc +187 -0
- data/src/core/ext/transport/chttp2/transport/frame_goaway.h +63 -0
- data/src/core/ext/transport/chttp2/transport/frame_ping.cc +132 -0
- data/src/core/ext/transport/chttp2/transport/frame_ping.h +46 -0
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.cc +118 -0
- data/src/core/ext/transport/chttp2/transport/frame_rst_stream.h +51 -0
- data/src/core/ext/transport/chttp2/transport/frame_settings.cc +273 -0
- data/src/core/ext/transport/chttp2/transport/frame_settings.h +62 -0
- data/src/core/ext/transport/chttp2/transport/frame_window_update.cc +123 -0
- data/src/core/ext/transport/chttp2/transport/frame_window_update.h +43 -0
- data/src/core/ext/transport/chttp2/transport/hpack_constants.h +41 -0
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.cc +546 -0
- data/src/core/ext/transport/chttp2/transport/hpack_encoder.h +277 -0
- data/src/core/ext/transport/chttp2/transport/hpack_encoder_index.h +107 -0
- data/src/core/ext/transport/chttp2/transport/hpack_encoder_table.cc +86 -0
- data/src/core/ext/transport/chttp2/transport/hpack_encoder_table.h +69 -0
- data/src/core/ext/transport/chttp2/transport/hpack_parser.cc +1454 -0
- data/src/core/ext/transport/chttp2/transport/hpack_parser.h +136 -0
- data/src/core/ext/transport/chttp2/transport/hpack_parser_table.cc +146 -0
- data/src/core/ext/transport/chttp2/transport/hpack_parser_table.h +137 -0
- data/src/core/ext/transport/chttp2/transport/hpack_utils.cc +46 -0
- data/src/core/ext/transport/chttp2/transport/hpack_utils.h +30 -0
- data/src/core/ext/transport/chttp2/transport/http2_settings.cc +62 -0
- data/src/core/ext/transport/chttp2/transport/http2_settings.h +61 -0
- data/src/core/ext/transport/chttp2/transport/huffsyms.cc +92 -0
- data/src/core/ext/transport/chttp2/transport/huffsyms.h +32 -0
- data/src/core/ext/transport/chttp2/transport/internal.h +892 -0
- data/src/core/ext/transport/chttp2/transport/parsing.cc +651 -0
- data/src/core/ext/transport/chttp2/transport/popularity_count.h +60 -0
- data/src/core/ext/transport/chttp2/transport/stream_lists.cc +216 -0
- data/src/core/ext/transport/chttp2/transport/stream_map.cc +177 -0
- data/src/core/ext/transport/chttp2/transport/stream_map.h +67 -0
- data/src/core/ext/transport/chttp2/transport/varint.cc +62 -0
- data/src/core/ext/transport/chttp2/transport/varint.h +71 -0
- data/src/core/ext/transport/chttp2/transport/writing.cc +716 -0
- data/src/core/ext/transport/inproc/inproc_plugin.cc +28 -0
- data/src/core/ext/transport/inproc/inproc_transport.cc +1360 -0
- data/src/core/ext/transport/inproc/inproc_transport.h +35 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.c +406 -0
- data/src/core/ext/upb-generated/envoy/admin/v3/config_dump.upb.h +1591 -0
- data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.c +17 -0
- data/src/core/ext/upb-generated/envoy/annotations/deprecation.upb.h +30 -0
- data/src/core/ext/upb-generated/envoy/annotations/resource.upb.c +27 -0
- data/src/core/ext/upb-generated/envoy/annotations/resource.upb.h +66 -0
- data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.c +243 -0
- data/src/core/ext/upb-generated/envoy/config/accesslog/v3/accesslog.upb.h +955 -0
- data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.c +371 -0
- data/src/core/ext/upb-generated/envoy/config/bootstrap/v3/bootstrap.upb.h +1554 -0
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.c +74 -0
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/circuit_breaker.upb.h +271 -0
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.c +494 -0
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/cluster.upb.h +2116 -0
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.c +35 -0
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/filter.upb.h +83 -0
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.c +56 -0
- data/src/core/ext/upb-generated/envoy/config/cluster/v3/outlier_detection.upb.h +370 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.c +124 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/address.upb.h +470 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.c +35 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/backoff.upb.h +94 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.c +382 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/base.upb.h +1295 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.c +103 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/config_source.upb.h +418 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.c +34 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/event_service_config.upb.h +84 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.c +53 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/extension.upb.h +161 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.c +241 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/grpc_service.upb.h +917 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.c +171 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/health_check.upb.h +830 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.c +36 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/http_uri.upb.h +94 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.c +244 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/protocol.upb.h +1089 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.c +27 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/proxy_protocol.upb.h +71 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.c +46 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/resolver.upb.h +133 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.c +34 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/socket_option.upb.h +101 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.c +43 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/substitution_format_string.upb.h +132 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.c +35 -0
- data/src/core/ext/upb-generated/envoy/config/core/v3/udp_socket_config.upb.h +96 -0
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.c +90 -0
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint.upb.h +261 -0
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.c +125 -0
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/endpoint_components.upb.h +462 -0
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.c +112 -0
- data/src/core/ext/upb-generated/envoy/config/endpoint/v3/load_report.upb.h +397 -0
- data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.c +33 -0
- data/src/core/ext/upb-generated/envoy/config/listener/v3/api_listener.upb.h +79 -0
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.c +138 -0
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener.upb.h +640 -0
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.c +161 -0
- data/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.h +680 -0
- data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.c +48 -0
- data/src/core/ext/upb-generated/envoy/config/listener/v3/quic_config.upb.h +177 -0
- data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.c +42 -0
- data/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.h +127 -0
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.c +144 -0
- data/src/core/ext/upb-generated/envoy/config/metrics/v3/stats.upb.h +536 -0
- data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.c +153 -0
- data/src/core/ext/upb-generated/envoy/config/overload/v3/overload.upb.h +550 -0
- data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.c +185 -0
- data/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.h +738 -0
- data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.c +82 -0
- data/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.h +312 -0
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.c +960 -0
- data/src/core/ext/upb-generated/envoy/config/route/v3/route_components.upb.h +4213 -0
- data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.c +60 -0
- data/src/core/ext/upb-generated/envoy/config/route/v3/scoped_route.upb.h +177 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.c +49 -0
- data/src/core/ext/upb-generated/envoy/config/trace/v3/http_tracer.upb.h +134 -0
- data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.c +29 -0
- data/src/core/ext/upb-generated/envoy/extensions/clusters/aggregate/v3/cluster.upb.h +73 -0
- data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.c +79 -0
- data/src/core/ext/upb-generated/envoy/extensions/filters/common/fault/v3/fault.upb.h +298 -0
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.c +79 -0
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/fault/v3/fault.upb.h +303 -0
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.c +42 -0
- data/src/core/ext/upb-generated/envoy/extensions/filters/http/router/v3/router.upb.h +123 -0
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.c +403 -0
- data/src/core/ext/upb-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upb.h +1785 -0
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.c +19 -0
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/cert.upb.h +35 -0
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.c +130 -0
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/common.upb.h +559 -0
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.c +73 -0
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/secret.upb.h +237 -0
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.c +148 -0
- data/src/core/ext/upb-generated/envoy/extensions/transport_sockets/tls/v3/tls.upb.h +674 -0
- data/src/core/ext/upb-generated/envoy/service/cluster/v3/cds.upb.c +27 -0
- data/src/core/ext/upb-generated/envoy/service/cluster/v3/cds.upb.h +62 -0
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.c +25 -0
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/ads.upb.h +62 -0
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.c +146 -0
- data/src/core/ext/upb-generated/envoy/service/discovery/v3/discovery.upb.h +535 -0
- data/src/core/ext/upb-generated/envoy/service/endpoint/v3/eds.upb.c +27 -0
- data/src/core/ext/upb-generated/envoy/service/endpoint/v3/eds.upb.h +62 -0
- data/src/core/ext/upb-generated/envoy/service/listener/v3/lds.upb.c +27 -0
- data/src/core/ext/upb-generated/envoy/service/listener/v3/lds.upb.h +62 -0
- data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.c +54 -0
- data/src/core/ext/upb-generated/envoy/service/load_stats/v3/lrs.upb.h +163 -0
- data/src/core/ext/upb-generated/envoy/service/route/v3/rds.upb.c +27 -0
- data/src/core/ext/upb-generated/envoy/service/route/v3/rds.upb.h +62 -0
- data/src/core/ext/upb-generated/envoy/service/route/v3/srds.upb.c +27 -0
- data/src/core/ext/upb-generated/envoy/service/route/v3/srds.upb.h +62 -0
- data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.c +121 -0
- data/src/core/ext/upb-generated/envoy/service/status/v3/csds.upb.h +468 -0
- data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.c +60 -0
- data/src/core/ext/upb-generated/envoy/type/http/v3/path_transformation.upb.h +205 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.c +48 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.h +144 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.c +36 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/node.upb.h +96 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.c +35 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/number.upb.h +90 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.c +34 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/path.upb.h +84 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.c +65 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/regex.upb.h +184 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.c +53 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/string.upb.h +158 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.c +46 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/struct.upb.h +136 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.c +63 -0
- data/src/core/ext/upb-generated/envoy/type/matcher/v3/value.upb.h +225 -0
- data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.c +88 -0
- data/src/core/ext/upb-generated/envoy/type/metadata/v3/metadata.upb.h +343 -0
- data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.c +90 -0
- data/src/core/ext/upb-generated/envoy/type/tracing/v3/custom_tag.upb.h +313 -0
- data/src/core/ext/upb-generated/envoy/type/v3/http.upb.c +17 -0
- data/src/core/ext/upb-generated/envoy/type/v3/http.upb.h +36 -0
- data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.c +40 -0
- data/src/core/ext/upb-generated/envoy/type/v3/percent.upb.h +111 -0
- data/src/core/ext/upb-generated/envoy/type/v3/range.upb.c +51 -0
- data/src/core/ext/upb-generated/envoy/type/v3/range.upb.h +148 -0
- data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.c +30 -0
- data/src/core/ext/upb-generated/envoy/type/v3/semantic_version.upb.h +74 -0
- data/src/core/ext/upb-generated/google/api/annotations.upb.c +18 -0
- data/src/core/ext/upb-generated/google/api/annotations.upb.h +30 -0
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.c +242 -0
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/checked.upb.h +896 -0
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.c +251 -0
- data/src/core/ext/upb-generated/google/api/expr/v1alpha1/syntax.upb.h +943 -0
- data/src/core/ext/upb-generated/google/api/http.upb.c +66 -0
- data/src/core/ext/upb-generated/google/api/http.upb.h +228 -0
- data/src/core/ext/upb-generated/google/protobuf/any.upb.c +27 -0
- data/src/core/ext/upb-generated/google/protobuf/any.upb.h +70 -0
- data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.c +486 -0
- data/src/core/ext/upb-generated/google/protobuf/descriptor.upb.h +2047 -0
- data/src/core/ext/upb-generated/google/protobuf/duration.upb.c +27 -0
- data/src/core/ext/upb-generated/google/protobuf/duration.upb.h +70 -0
- data/src/core/ext/upb-generated/google/protobuf/empty.upb.c +22 -0
- data/src/core/ext/upb-generated/google/protobuf/empty.upb.h +62 -0
- data/src/core/ext/upb-generated/google/protobuf/struct.upb.c +79 -0
- data/src/core/ext/upb-generated/google/protobuf/struct.upb.h +231 -0
- data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.c +27 -0
- data/src/core/ext/upb-generated/google/protobuf/timestamp.upb.h +70 -0
- data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.c +106 -0
- data/src/core/ext/upb-generated/google/protobuf/wrappers.upb.h +346 -0
- data/src/core/ext/upb-generated/google/rpc/status.upb.c +33 -0
- data/src/core/ext/upb-generated/google/rpc/status.upb.h +87 -0
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.c +49 -0
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/altscontext.upb.h +127 -0
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.c +212 -0
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/handshaker.upb.h +805 -0
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.c +42 -0
- data/src/core/ext/upb-generated/src/proto/grpc/gcp/transport_security_common.upb.h +137 -0
- data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.c +36 -0
- data/src/core/ext/upb-generated/src/proto/grpc/health/v1/health.upb.h +108 -0
- data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.c +141 -0
- data/src/core/ext/upb-generated/src/proto/grpc/lb/v1/load_balancer.upb.h +507 -0
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.c +55 -0
- data/src/core/ext/upb-generated/src/proto/grpc/lookup/v1/rls.upb.h +154 -0
- data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.c +48 -0
- data/src/core/ext/upb-generated/udpa/annotations/migrate.upb.h +140 -0
- data/src/core/ext/upb-generated/udpa/annotations/security.upb.c +29 -0
- data/src/core/ext/upb-generated/udpa/annotations/security.upb.h +70 -0
- data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.c +17 -0
- data/src/core/ext/upb-generated/udpa/annotations/sensitive.upb.h +30 -0
- data/src/core/ext/upb-generated/udpa/annotations/status.upb.c +28 -0
- data/src/core/ext/upb-generated/udpa/annotations/status.upb.h +77 -0
- data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.c +27 -0
- data/src/core/ext/upb-generated/udpa/annotations/versioning.upb.h +66 -0
- data/src/core/ext/upb-generated/validate/validate.upb.c +464 -0
- data/src/core/ext/upb-generated/validate/validate.upb.h +2447 -0
- data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.c +58 -0
- data/src/core/ext/upb-generated/xds/annotations/v3/status.upb.h +182 -0
- data/src/core/ext/upb-generated/xds/core/v3/authority.upb.c +28 -0
- data/src/core/ext/upb-generated/xds/core/v3/authority.upb.h +66 -0
- data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.c +52 -0
- data/src/core/ext/upb-generated/xds/core/v3/collection_entry.upb.h +155 -0
- data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.c +42 -0
- data/src/core/ext/upb-generated/xds/core/v3/context_params.upb.h +90 -0
- data/src/core/ext/upb-generated/xds/core/v3/resource.upb.c +36 -0
- data/src/core/ext/upb-generated/xds/core/v3/resource.upb.h +100 -0
- data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.c +54 -0
- data/src/core/ext/upb-generated/xds/core/v3/resource_locator.upb.h +178 -0
- data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.c +36 -0
- data/src/core/ext/upb-generated/xds/core/v3/resource_name.upb.h +91 -0
- data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.c +58 -0
- data/src/core/ext/upb-generated/xds/data/orca/v3/orca_load_report.upb.h +130 -0
- data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.c +33 -0
- data/src/core/ext/upb-generated/xds/type/v3/typed_struct.upb.h +83 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump.upbdefs.c +354 -0
- data/src/core/ext/upbdefs-generated/envoy/admin/v3/config_dump.upbdefs.h +140 -0
- data/src/core/ext/upbdefs-generated/envoy/annotations/deprecation.upbdefs.c +46 -0
- data/src/core/ext/upbdefs-generated/envoy/annotations/deprecation.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-generated/envoy/annotations/resource.upbdefs.c +41 -0
- data/src/core/ext/upbdefs-generated/envoy/annotations/resource.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/config/accesslog/v3/accesslog.upbdefs.c +252 -0
- data/src/core/ext/upbdefs-generated/envoy/config/accesslog/v3/accesslog.upbdefs.h +105 -0
- data/src/core/ext/upbdefs-generated/envoy/config/bootstrap/v3/bootstrap.upbdefs.c +424 -0
- data/src/core/ext/upbdefs-generated/envoy/config/bootstrap/v3/bootstrap.upbdefs.h +120 -0
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/circuit_breaker.upbdefs.c +100 -0
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/circuit_breaker.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/cluster.upbdefs.c +596 -0
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/cluster.upbdefs.h +155 -0
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/filter.upbdefs.c +53 -0
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/filter.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/outlier_detection.upbdefs.c +136 -0
- data/src/core/ext/upbdefs-generated/envoy/config/cluster/v3/outlier_detection.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/address.upbdefs.c +127 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/address.upbdefs.h +65 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/backoff.upbdefs.c +56 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/backoff.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.c +313 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.h +150 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/config_source.upbdefs.c +144 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/config_source.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/event_service_config.upbdefs.c +56 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/event_service_config.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/extension.upbdefs.c +66 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/extension.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_service.upbdefs.c +263 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/grpc_service.upbdefs.h +100 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/health_check.upbdefs.c +236 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/health_check.upbdefs.h +70 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/http_uri.upbdefs.c +56 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/http_uri.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/protocol.upbdefs.c +300 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/protocol.upbdefs.h +100 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/proxy_protocol.upbdefs.c +43 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/proxy_protocol.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/resolver.upbdefs.c +59 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/resolver.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/socket_option.upbdefs.c +59 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/socket_option.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/substitution_format_string.upbdefs.c +72 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/substitution_format_string.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/udp_socket_config.upbdefs.c +52 -0
- data/src/core/ext/upbdefs-generated/envoy/config/core/v3/udp_socket_config.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint.upbdefs.c +107 -0
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint_components.upbdefs.c +140 -0
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/endpoint_components.upbdefs.h +60 -0
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/load_report.upbdefs.c +146 -0
- data/src/core/ext/upbdefs-generated/envoy/config/endpoint/v3/load_report.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/api_listener.upbdefs.c +50 -0
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/api_listener.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener.upbdefs.c +205 -0
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener.upbdefs.h +60 -0
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener_components.upbdefs.c +201 -0
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener_components.upbdefs.h +65 -0
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/quic_config.upbdefs.c +90 -0
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/quic_config.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/udp_listener_config.upbdefs.c +67 -0
- data/src/core/ext/upbdefs-generated/envoy/config/listener/v3/udp_listener_config.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/stats.upbdefs.c +141 -0
- data/src/core/ext/upbdefs-generated/envoy/config/metrics/v3/stats.upbdefs.h +70 -0
- data/src/core/ext/upbdefs-generated/envoy/config/overload/v3/overload.upbdefs.c +152 -0
- data/src/core/ext/upbdefs-generated/envoy/config/overload/v3/overload.upbdefs.h +75 -0
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route.upbdefs.c +115 -0
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.c +982 -0
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/route_components.upbdefs.h +295 -0
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/scoped_route.upbdefs.c +71 -0
- data/src/core/ext/upbdefs-generated/envoy/config/route/v3/scoped_route.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/http_tracer.upbdefs.c +61 -0
- data/src/core/ext/upbdefs-generated/envoy/config/trace/v3/http_tracer.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.c +51 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/clusters/aggregate/v3/cluster.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/common/fault/v3/fault.upbdefs.c +102 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/common/fault/v3/fault.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/fault/v3/fault.upbdefs.c +123 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/fault/v3/fault.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/router/v3/router.upbdefs.c +79 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/http/router/v3/router.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.c +567 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/filters/network/http_connection_manager/v3/http_connection_manager.upbdefs.h +125 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.c +44 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/cert.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.c +196 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/common.upbdefs.h +60 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.c +97 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/secret.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.c +251 -0
- data/src/core/ext/upbdefs-generated/envoy/extensions/transport_sockets/tls/v3/tls.upbdefs.h +60 -0
- data/src/core/ext/upbdefs-generated/envoy/service/cluster/v3/cds.upbdefs.c +72 -0
- data/src/core/ext/upbdefs-generated/envoy/service/cluster/v3/cds.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/ads.upbdefs.c +60 -0
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/ads.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/discovery.upbdefs.c +142 -0
- data/src/core/ext/upbdefs-generated/envoy/service/discovery/v3/discovery.upbdefs.h +65 -0
- data/src/core/ext/upbdefs-generated/envoy/service/endpoint/v3/eds.upbdefs.c +73 -0
- data/src/core/ext/upbdefs-generated/envoy/service/endpoint/v3/eds.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/service/listener/v3/lds.upbdefs.c +72 -0
- data/src/core/ext/upbdefs-generated/envoy/service/listener/v3/lds.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/service/load_stats/v3/lrs.upbdefs.c +80 -0
- data/src/core/ext/upbdefs-generated/envoy/service/load_stats/v3/lrs.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/service/route/v3/rds.upbdefs.c +80 -0
- data/src/core/ext/upbdefs-generated/envoy/service/route/v3/rds.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/service/route/v3/srds.upbdefs.c +74 -0
- data/src/core/ext/upbdefs-generated/envoy/service/route/v3/srds.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/service/status/v3/csds.upbdefs.c +163 -0
- data/src/core/ext/upbdefs-generated/envoy/service/status/v3/csds.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/path_transformation.upbdefs.c +64 -0
- data/src/core/ext/upbdefs-generated/envoy/type/http/v3/path_transformation.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/metadata.upbdefs.c +65 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/metadata.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/node.upbdefs.c +56 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/node.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/number.upbdefs.c +54 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/number.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/path.upbdefs.c +53 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/path.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/regex.upbdefs.c +76 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/regex.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/string.upbdefs.c +69 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/string.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/struct.upbdefs.c +63 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/struct.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/value.upbdefs.c +81 -0
- data/src/core/ext/upbdefs-generated/envoy/type/matcher/v3/value.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-generated/envoy/type/metadata/v3/metadata.upbdefs.c +92 -0
- data/src/core/ext/upbdefs-generated/envoy/type/metadata/v3/metadata.upbdefs.h +65 -0
- data/src/core/ext/upbdefs-generated/envoy/type/tracing/v3/custom_tag.upbdefs.c +95 -0
- data/src/core/ext/upbdefs-generated/envoy/type/tracing/v3/custom_tag.upbdefs.h +55 -0
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http.upbdefs.c +34 -0
- data/src/core/ext/upbdefs-generated/envoy/type/v3/http.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-generated/envoy/type/v3/percent.upbdefs.c +59 -0
- data/src/core/ext/upbdefs-generated/envoy/type/v3/percent.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/envoy/type/v3/range.upbdefs.c +54 -0
- data/src/core/ext/upbdefs-generated/envoy/type/v3/range.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-generated/envoy/type/v3/semantic_version.upbdefs.c +47 -0
- data/src/core/ext/upbdefs-generated/envoy/type/v3/semantic_version.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/google/api/annotations.upbdefs.c +40 -0
- data/src/core/ext/upbdefs-generated/google/api/annotations.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-generated/google/api/http.upbdefs.c +61 -0
- data/src/core/ext/upbdefs-generated/google/api/http.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-generated/google/protobuf/any.upbdefs.c +39 -0
- data/src/core/ext/upbdefs-generated/google/protobuf/any.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.c +386 -0
- data/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.h +165 -0
- data/src/core/ext/upbdefs-generated/google/protobuf/duration.upbdefs.c +40 -0
- data/src/core/ext/upbdefs-generated/google/protobuf/duration.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/google/protobuf/empty.upbdefs.c +37 -0
- data/src/core/ext/upbdefs-generated/google/protobuf/empty.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/google/protobuf/struct.upbdefs.c +65 -0
- data/src/core/ext/upbdefs-generated/google/protobuf/struct.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-generated/google/protobuf/timestamp.upbdefs.c +40 -0
- data/src/core/ext/upbdefs-generated/google/protobuf/timestamp.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/google/protobuf/wrappers.upbdefs.c +66 -0
- data/src/core/ext/upbdefs-generated/google/protobuf/wrappers.upbdefs.h +75 -0
- data/src/core/ext/upbdefs-generated/google/rpc/status.upbdefs.c +42 -0
- data/src/core/ext/upbdefs-generated/google/rpc/status.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/udpa/annotations/migrate.upbdefs.c +71 -0
- data/src/core/ext/upbdefs-generated/udpa/annotations/migrate.upbdefs.h +45 -0
- data/src/core/ext/upbdefs-generated/udpa/annotations/security.upbdefs.c +52 -0
- data/src/core/ext/upbdefs-generated/udpa/annotations/security.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/udpa/annotations/sensitive.upbdefs.c +34 -0
- data/src/core/ext/upbdefs-generated/udpa/annotations/sensitive.upbdefs.h +30 -0
- data/src/core/ext/upbdefs-generated/udpa/annotations/status.upbdefs.c +51 -0
- data/src/core/ext/upbdefs-generated/udpa/annotations/status.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/udpa/annotations/versioning.upbdefs.c +44 -0
- data/src/core/ext/upbdefs-generated/udpa/annotations/versioning.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/validate/validate.upbdefs.c +332 -0
- data/src/core/ext/upbdefs-generated/validate/validate.upbdefs.h +145 -0
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/status.upbdefs.c +75 -0
- data/src/core/ext/upbdefs-generated/xds/annotations/v3/status.upbdefs.h +50 -0
- data/src/core/ext/upbdefs-generated/xds/core/v3/authority.upbdefs.c +43 -0
- data/src/core/ext/upbdefs-generated/xds/core/v3/authority.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/xds/core/v3/collection_entry.upbdefs.c +63 -0
- data/src/core/ext/upbdefs-generated/xds/core/v3/collection_entry.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/xds/core/v3/context_params.upbdefs.c +46 -0
- data/src/core/ext/upbdefs-generated/xds/core/v3/context_params.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource.upbdefs.c +50 -0
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_locator.upbdefs.c +68 -0
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_locator.upbdefs.h +40 -0
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_name.upbdefs.c +51 -0
- data/src/core/ext/upbdefs-generated/xds/core/v3/resource_name.upbdefs.h +35 -0
- data/src/core/ext/upbdefs-generated/xds/type/v3/typed_struct.upbdefs.c +45 -0
- data/src/core/ext/upbdefs-generated/xds/type/v3/typed_struct.upbdefs.h +35 -0
- data/src/core/ext/xds/certificate_provider_factory.h +61 -0
- data/src/core/ext/xds/certificate_provider_registry.cc +103 -0
- data/src/core/ext/xds/certificate_provider_registry.h +57 -0
- data/src/core/ext/xds/certificate_provider_store.cc +87 -0
- data/src/core/ext/xds/certificate_provider_store.h +112 -0
- data/src/core/ext/xds/file_watcher_certificate_provider_factory.cc +144 -0
- data/src/core/ext/xds/file_watcher_certificate_provider_factory.h +69 -0
- data/src/core/ext/xds/xds_api.cc +3965 -0
- data/src/core/ext/xds/xds_api.h +744 -0
- data/src/core/ext/xds/xds_bootstrap.cc +471 -0
- data/src/core/ext/xds/xds_bootstrap.h +125 -0
- data/src/core/ext/xds/xds_certificate_provider.cc +405 -0
- data/src/core/ext/xds/xds_certificate_provider.h +151 -0
- data/src/core/ext/xds/xds_channel_args.h +32 -0
- data/src/core/ext/xds/xds_channel_stack_modifier.cc +113 -0
- data/src/core/ext/xds/xds_channel_stack_modifier.h +52 -0
- data/src/core/ext/xds/xds_client.cc +2791 -0
- data/src/core/ext/xds/xds_client.h +380 -0
- data/src/core/ext/xds/xds_client_stats.cc +160 -0
- data/src/core/ext/xds/xds_client_stats.h +240 -0
- data/src/core/ext/xds/xds_http_fault_filter.cc +227 -0
- data/src/core/ext/xds/xds_http_fault_filter.h +64 -0
- data/src/core/ext/xds/xds_http_filters.cc +116 -0
- data/src/core/ext/xds/xds_http_filters.h +133 -0
- data/src/core/ext/xds/xds_server_config_fetcher.cc +544 -0
- data/src/core/lib/address_utils/parse_address.cc +320 -0
- data/src/core/lib/address_utils/parse_address.h +77 -0
- data/src/core/lib/address_utils/sockaddr_utils.cc +412 -0
- data/src/core/lib/address_utils/sockaddr_utils.h +110 -0
- data/src/core/lib/avl/avl.cc +306 -0
- data/src/core/lib/avl/avl.h +94 -0
- data/src/core/lib/backoff/backoff.cc +78 -0
- data/src/core/lib/backoff/backoff.h +89 -0
- data/src/core/lib/channel/call_tracer.h +85 -0
- data/src/core/lib/channel/channel_args.cc +400 -0
- data/src/core/lib/channel/channel_args.h +143 -0
- data/src/core/lib/channel/channel_stack.cc +267 -0
- data/src/core/lib/channel/channel_stack.h +312 -0
- data/src/core/lib/channel/channel_stack_builder.cc +313 -0
- data/src/core/lib/channel/channel_stack_builder.h +158 -0
- data/src/core/lib/channel/channel_trace.cc +193 -0
- data/src/core/lib/channel/channel_trace.h +135 -0
- data/src/core/lib/channel/channelz.cc +596 -0
- data/src/core/lib/channel/channelz.h +357 -0
- data/src/core/lib/channel/channelz_registry.cc +285 -0
- data/src/core/lib/channel/channelz_registry.h +99 -0
- data/src/core/lib/channel/connected_channel.cc +245 -0
- data/src/core/lib/channel/connected_channel.h +33 -0
- data/src/core/lib/channel/context.h +52 -0
- data/src/core/lib/channel/handshaker.cc +222 -0
- data/src/core/lib/channel/handshaker.h +161 -0
- data/src/core/lib/channel/handshaker_factory.h +50 -0
- data/src/core/lib/channel/handshaker_registry.cc +50 -0
- data/src/core/lib/channel/handshaker_registry.h +71 -0
- data/src/core/lib/channel/status_util.cc +109 -0
- data/src/core/lib/channel/status_util.h +67 -0
- data/src/core/lib/compression/algorithm_metadata.h +62 -0
- data/src/core/lib/compression/compression.cc +183 -0
- data/src/core/lib/compression/compression_args.cc +138 -0
- data/src/core/lib/compression/compression_args.h +56 -0
- data/src/core/lib/compression/compression_internal.cc +283 -0
- data/src/core/lib/compression/compression_internal.h +97 -0
- data/src/core/lib/compression/message_compress.cc +192 -0
- data/src/core/lib/compression/message_compress.h +40 -0
- data/src/core/lib/compression/stream_compression.cc +81 -0
- data/src/core/lib/compression/stream_compression.h +117 -0
- data/src/core/lib/compression/stream_compression_gzip.cc +231 -0
- data/src/core/lib/compression/stream_compression_gzip.h +28 -0
- data/src/core/lib/compression/stream_compression_identity.cc +91 -0
- data/src/core/lib/compression/stream_compression_identity.h +29 -0
- data/src/core/lib/config/core_configuration.cc +96 -0
- data/src/core/lib/config/core_configuration.h +146 -0
- data/src/core/lib/debug/stats.cc +172 -0
- data/src/core/lib/debug/stats.h +71 -0
- data/src/core/lib/debug/stats_data.cc +689 -0
- data/src/core/lib/debug/stats_data.h +556 -0
- data/src/core/lib/debug/trace.cc +155 -0
- data/src/core/lib/debug/trace.h +132 -0
- data/src/core/lib/event_engine/endpoint_config.cc +45 -0
- data/src/core/lib/event_engine/endpoint_config_internal.h +42 -0
- data/src/core/lib/event_engine/event_engine.cc +50 -0
- data/src/core/lib/event_engine/sockaddr.cc +40 -0
- data/src/core/lib/event_engine/sockaddr.h +44 -0
- data/src/core/lib/gpr/alloc.cc +76 -0
- data/src/core/lib/gpr/alloc.h +28 -0
- data/src/core/lib/gpr/atm.cc +35 -0
- data/src/core/lib/gpr/cpu_iphone.cc +44 -0
- data/src/core/lib/gpr/cpu_linux.cc +82 -0
- data/src/core/lib/gpr/cpu_posix.cc +83 -0
- data/src/core/lib/gpr/cpu_windows.cc +33 -0
- data/src/core/lib/gpr/env.h +40 -0
- data/src/core/lib/gpr/env_linux.cc +75 -0
- data/src/core/lib/gpr/env_posix.cc +46 -0
- data/src/core/lib/gpr/env_windows.cc +74 -0
- data/src/core/lib/gpr/log.cc +140 -0
- data/src/core/lib/gpr/log_android.cc +77 -0
- data/src/core/lib/gpr/log_linux.cc +114 -0
- data/src/core/lib/gpr/log_posix.cc +110 -0
- data/src/core/lib/gpr/log_windows.cc +116 -0
- data/src/core/lib/gpr/murmur_hash.cc +82 -0
- data/src/core/lib/gpr/murmur_hash.h +29 -0
- data/src/core/lib/gpr/spinlock.h +53 -0
- data/src/core/lib/gpr/string.cc +343 -0
- data/src/core/lib/gpr/string.h +112 -0
- data/src/core/lib/gpr/string_posix.cc +72 -0
- data/src/core/lib/gpr/string_util_windows.cc +82 -0
- data/src/core/lib/gpr/string_windows.cc +69 -0
- data/src/core/lib/gpr/string_windows.h +32 -0
- data/src/core/lib/gpr/sync.cc +124 -0
- data/src/core/lib/gpr/sync_abseil.cc +114 -0
- data/src/core/lib/gpr/sync_posix.cc +170 -0
- data/src/core/lib/gpr/sync_windows.cc +120 -0
- data/src/core/lib/gpr/time.cc +264 -0
- data/src/core/lib/gpr/time_posix.cc +186 -0
- data/src/core/lib/gpr/time_precise.cc +168 -0
- data/src/core/lib/gpr/time_precise.h +70 -0
- data/src/core/lib/gpr/time_windows.cc +99 -0
- data/src/core/lib/gpr/tls.h +151 -0
- data/src/core/lib/gpr/tmpfile.h +32 -0
- data/src/core/lib/gpr/tmpfile_msys.cc +58 -0
- data/src/core/lib/gpr/tmpfile_posix.cc +69 -0
- data/src/core/lib/gpr/tmpfile_windows.cc +69 -0
- data/src/core/lib/gpr/useful.h +113 -0
- data/src/core/lib/gpr/wrap_memcpy.cc +43 -0
- data/src/core/lib/gprpp/arena.cc +104 -0
- data/src/core/lib/gprpp/arena.h +131 -0
- data/src/core/lib/gprpp/atomic_utils.h +47 -0
- data/src/core/lib/gprpp/bitset.h +188 -0
- data/src/core/lib/gprpp/chunked_vector.h +211 -0
- data/src/core/lib/gprpp/construct_destruct.h +39 -0
- data/src/core/lib/gprpp/debug_location.h +53 -0
- data/src/core/lib/gprpp/dual_ref_counted.h +330 -0
- data/src/core/lib/gprpp/examine_stack.cc +43 -0
- data/src/core/lib/gprpp/examine_stack.h +46 -0
- data/src/core/lib/gprpp/fork.cc +244 -0
- data/src/core/lib/gprpp/fork.h +103 -0
- data/src/core/lib/gprpp/global_config.h +95 -0
- data/src/core/lib/gprpp/global_config_custom.h +29 -0
- data/src/core/lib/gprpp/global_config_env.cc +137 -0
- data/src/core/lib/gprpp/global_config_env.h +131 -0
- data/src/core/lib/gprpp/global_config_generic.h +44 -0
- data/src/core/lib/gprpp/host_port.cc +112 -0
- data/src/core/lib/gprpp/host_port.h +56 -0
- data/src/core/lib/gprpp/manual_constructor.h +216 -0
- data/src/core/lib/gprpp/match.h +73 -0
- data/src/core/lib/gprpp/memory.h +57 -0
- data/src/core/lib/gprpp/mpscq.cc +108 -0
- data/src/core/lib/gprpp/mpscq.h +99 -0
- data/src/core/lib/gprpp/orphanable.h +125 -0
- data/src/core/lib/gprpp/overload.h +59 -0
- data/src/core/lib/gprpp/ref_counted.h +349 -0
- data/src/core/lib/gprpp/ref_counted_ptr.h +353 -0
- data/src/core/lib/gprpp/stat.h +38 -0
- data/src/core/lib/gprpp/stat_posix.cc +49 -0
- data/src/core/lib/gprpp/stat_windows.cc +48 -0
- data/src/core/lib/gprpp/status_helper.cc +427 -0
- data/src/core/lib/gprpp/status_helper.h +194 -0
- data/src/core/lib/gprpp/sync.h +198 -0
- data/src/core/lib/gprpp/table.h +411 -0
- data/src/core/lib/gprpp/thd.h +174 -0
- data/src/core/lib/gprpp/thd_posix.cc +209 -0
- data/src/core/lib/gprpp/thd_windows.cc +171 -0
- data/src/core/lib/gprpp/time_util.cc +77 -0
- data/src/core/lib/gprpp/time_util.h +42 -0
- data/src/core/lib/http/format_request.cc +104 -0
- data/src/core/lib/http/format_request.h +35 -0
- data/src/core/lib/http/httpcli.cc +324 -0
- data/src/core/lib/http/httpcli.h +128 -0
- data/src/core/lib/http/httpcli_security_connector.cc +215 -0
- data/src/core/lib/http/parser.cc +392 -0
- data/src/core/lib/http/parser.h +114 -0
- data/src/core/lib/iomgr/block_annotate.h +57 -0
- data/src/core/lib/iomgr/buffer_list.cc +307 -0
- data/src/core/lib/iomgr/buffer_list.h +163 -0
- data/src/core/lib/iomgr/call_combiner.cc +281 -0
- data/src/core/lib/iomgr/call_combiner.h +215 -0
- data/src/core/lib/iomgr/cfstream_handle.cc +210 -0
- data/src/core/lib/iomgr/cfstream_handle.h +90 -0
- data/src/core/lib/iomgr/closure.h +256 -0
- data/src/core/lib/iomgr/combiner.cc +328 -0
- data/src/core/lib/iomgr/combiner.h +89 -0
- data/src/core/lib/iomgr/dualstack_socket_posix.cc +48 -0
- data/src/core/lib/iomgr/dynamic_annotations.h +67 -0
- data/src/core/lib/iomgr/endpoint.cc +67 -0
- data/src/core/lib/iomgr/endpoint.h +108 -0
- data/src/core/lib/iomgr/endpoint_cfstream.cc +389 -0
- data/src/core/lib/iomgr/endpoint_cfstream.h +49 -0
- data/src/core/lib/iomgr/endpoint_pair.h +34 -0
- data/src/core/lib/iomgr/endpoint_pair_event_engine.cc +32 -0
- data/src/core/lib/iomgr/endpoint_pair_posix.cc +77 -0
- data/src/core/lib/iomgr/endpoint_pair_windows.cc +95 -0
- data/src/core/lib/iomgr/error.cc +985 -0
- data/src/core/lib/iomgr/error.h +442 -0
- data/src/core/lib/iomgr/error_cfstream.cc +59 -0
- data/src/core/lib/iomgr/error_cfstream.h +31 -0
- data/src/core/lib/iomgr/error_internal.h +66 -0
- data/src/core/lib/iomgr/ev_apple.cc +359 -0
- data/src/core/lib/iomgr/ev_apple.h +43 -0
- data/src/core/lib/iomgr/ev_epoll1_linux.cc +1364 -0
- data/src/core/lib/iomgr/ev_epoll1_linux.h +31 -0
- data/src/core/lib/iomgr/ev_epollex_linux.cc +1654 -0
- data/src/core/lib/iomgr/ev_epollex_linux.h +30 -0
- data/src/core/lib/iomgr/ev_poll_posix.cc +1430 -0
- data/src/core/lib/iomgr/ev_poll_posix.h +29 -0
- data/src/core/lib/iomgr/ev_posix.cc +417 -0
- data/src/core/lib/iomgr/ev_posix.h +207 -0
- data/src/core/lib/iomgr/ev_windows.cc +30 -0
- data/src/core/lib/iomgr/event_engine/closure.cc +77 -0
- data/src/core/lib/iomgr/event_engine/closure.h +42 -0
- data/src/core/lib/iomgr/event_engine/endpoint.cc +173 -0
- data/src/core/lib/iomgr/event_engine/endpoint.h +52 -0
- data/src/core/lib/iomgr/event_engine/iomgr.cc +104 -0
- data/src/core/lib/iomgr/event_engine/iomgr.h +42 -0
- data/src/core/lib/iomgr/event_engine/pollset.cc +88 -0
- data/src/core/lib/iomgr/event_engine/pollset.h +25 -0
- data/src/core/lib/iomgr/event_engine/promise.h +51 -0
- data/src/core/lib/iomgr/event_engine/resolved_address_internal.cc +41 -0
- data/src/core/lib/iomgr/event_engine/resolved_address_internal.h +35 -0
- data/src/core/lib/iomgr/event_engine/resolver.cc +114 -0
- data/src/core/lib/iomgr/event_engine/tcp.cc +293 -0
- data/src/core/lib/iomgr/event_engine/timer.cc +62 -0
- data/src/core/lib/iomgr/exec_ctx.cc +227 -0
- data/src/core/lib/iomgr/exec_ctx.h +375 -0
- data/src/core/lib/iomgr/executor/mpmcqueue.cc +182 -0
- data/src/core/lib/iomgr/executor/mpmcqueue.h +171 -0
- data/src/core/lib/iomgr/executor/threadpool.cc +136 -0
- data/src/core/lib/iomgr/executor/threadpool.h +150 -0
- data/src/core/lib/iomgr/executor.cc +455 -0
- data/src/core/lib/iomgr/executor.h +122 -0
- data/src/core/lib/iomgr/fork_posix.cc +119 -0
- data/src/core/lib/iomgr/fork_windows.cc +41 -0
- data/src/core/lib/iomgr/gethostname.h +26 -0
- data/src/core/lib/iomgr/gethostname_fallback.cc +30 -0
- data/src/core/lib/iomgr/gethostname_host_name_max.cc +40 -0
- data/src/core/lib/iomgr/gethostname_sysconf.cc +40 -0
- data/src/core/lib/iomgr/grpc_if_nametoindex.h +30 -0
- data/src/core/lib/iomgr/grpc_if_nametoindex_posix.cc +42 -0
- data/src/core/lib/iomgr/grpc_if_nametoindex_unsupported.cc +38 -0
- data/src/core/lib/iomgr/internal_errqueue.cc +68 -0
- data/src/core/lib/iomgr/internal_errqueue.h +191 -0
- data/src/core/lib/iomgr/iocp_windows.cc +158 -0
- data/src/core/lib/iomgr/iocp_windows.h +48 -0
- data/src/core/lib/iomgr/iomgr.cc +196 -0
- data/src/core/lib/iomgr/iomgr.h +60 -0
- data/src/core/lib/iomgr/iomgr_custom.cc +79 -0
- data/src/core/lib/iomgr/iomgr_custom.h +49 -0
- data/src/core/lib/iomgr/iomgr_internal.cc +53 -0
- data/src/core/lib/iomgr/iomgr_internal.h +74 -0
- data/src/core/lib/iomgr/iomgr_posix.cc +90 -0
- data/src/core/lib/iomgr/iomgr_posix_cfstream.cc +200 -0
- data/src/core/lib/iomgr/iomgr_windows.cc +105 -0
- data/src/core/lib/iomgr/is_epollexclusive_available.cc +119 -0
- data/src/core/lib/iomgr/is_epollexclusive_available.h +36 -0
- data/src/core/lib/iomgr/load_file.cc +81 -0
- data/src/core/lib/iomgr/load_file.h +35 -0
- data/src/core/lib/iomgr/lockfree_event.cc +278 -0
- data/src/core/lib/iomgr/lockfree_event.h +72 -0
- data/src/core/lib/iomgr/nameser.h +106 -0
- data/src/core/lib/iomgr/polling_entity.cc +96 -0
- data/src/core/lib/iomgr/polling_entity.h +68 -0
- data/src/core/lib/iomgr/pollset.cc +56 -0
- data/src/core/lib/iomgr/pollset.h +99 -0
- data/src/core/lib/iomgr/pollset_custom.cc +105 -0
- data/src/core/lib/iomgr/pollset_custom.h +37 -0
- data/src/core/lib/iomgr/pollset_set.cc +55 -0
- data/src/core/lib/iomgr/pollset_set.h +55 -0
- data/src/core/lib/iomgr/pollset_set_custom.cc +47 -0
- data/src/core/lib/iomgr/pollset_set_custom.h +26 -0
- data/src/core/lib/iomgr/pollset_set_windows.cc +52 -0
- data/src/core/lib/iomgr/pollset_set_windows.h +26 -0
- data/src/core/lib/iomgr/pollset_windows.cc +243 -0
- data/src/core/lib/iomgr/pollset_windows.h +70 -0
- data/src/core/lib/iomgr/port.h +221 -0
- data/src/core/lib/iomgr/python_util.h +47 -0
- data/src/core/lib/iomgr/resolve_address.cc +55 -0
- data/src/core/lib/iomgr/resolve_address.h +83 -0
- data/src/core/lib/iomgr/resolve_address_custom.cc +169 -0
- data/src/core/lib/iomgr/resolve_address_custom.h +44 -0
- data/src/core/lib/iomgr/resolve_address_posix.cc +170 -0
- data/src/core/lib/iomgr/resolve_address_windows.cc +152 -0
- data/src/core/lib/iomgr/resource_quota.cc +1106 -0
- data/src/core/lib/iomgr/resource_quota.h +226 -0
- data/src/core/lib/iomgr/sockaddr.h +33 -0
- data/src/core/lib/iomgr/sockaddr_posix.h +55 -0
- data/src/core/lib/iomgr/sockaddr_windows.h +55 -0
- data/src/core/lib/iomgr/socket_factory_posix.cc +95 -0
- data/src/core/lib/iomgr/socket_factory_posix.h +69 -0
- data/src/core/lib/iomgr/socket_mutator.cc +97 -0
- data/src/core/lib/iomgr/socket_mutator.h +84 -0
- data/src/core/lib/iomgr/socket_utils.h +47 -0
- data/src/core/lib/iomgr/socket_utils_common_posix.cc +515 -0
- data/src/core/lib/iomgr/socket_utils_linux.cc +42 -0
- data/src/core/lib/iomgr/socket_utils_posix.cc +58 -0
- data/src/core/lib/iomgr/socket_utils_posix.h +163 -0
- data/src/core/lib/iomgr/socket_utils_windows.cc +47 -0
- data/src/core/lib/iomgr/socket_windows.cc +202 -0
- data/src/core/lib/iomgr/socket_windows.h +127 -0
- data/src/core/lib/iomgr/sys_epoll_wrapper.h +30 -0
- data/src/core/lib/iomgr/tcp_client.cc +38 -0
- data/src/core/lib/iomgr/tcp_client.h +56 -0
- data/src/core/lib/iomgr/tcp_client_cfstream.cc +205 -0
- data/src/core/lib/iomgr/tcp_client_custom.cc +152 -0
- data/src/core/lib/iomgr/tcp_client_posix.cc +360 -0
- data/src/core/lib/iomgr/tcp_client_posix.h +70 -0
- data/src/core/lib/iomgr/tcp_client_windows.cc +241 -0
- data/src/core/lib/iomgr/tcp_custom.cc +377 -0
- data/src/core/lib/iomgr/tcp_custom.h +86 -0
- data/src/core/lib/iomgr/tcp_posix.cc +1848 -0
- data/src/core/lib/iomgr/tcp_posix.h +67 -0
- data/src/core/lib/iomgr/tcp_server.cc +79 -0
- data/src/core/lib/iomgr/tcp_server.h +149 -0
- data/src/core/lib/iomgr/tcp_server_custom.cc +467 -0
- data/src/core/lib/iomgr/tcp_server_posix.cc +645 -0
- data/src/core/lib/iomgr/tcp_server_utils_posix.h +128 -0
- data/src/core/lib/iomgr/tcp_server_utils_posix_common.cc +223 -0
- data/src/core/lib/iomgr/tcp_server_utils_posix_ifaddrs.cc +175 -0
- data/src/core/lib/iomgr/tcp_server_utils_posix_noifaddrs.cc +36 -0
- data/src/core/lib/iomgr/tcp_server_windows.cc +568 -0
- data/src/core/lib/iomgr/tcp_windows.cc +530 -0
- data/src/core/lib/iomgr/tcp_windows.h +54 -0
- data/src/core/lib/iomgr/time_averaged_stats.cc +64 -0
- data/src/core/lib/iomgr/time_averaged_stats.h +72 -0
- data/src/core/lib/iomgr/timer.cc +46 -0
- data/src/core/lib/iomgr/timer.h +131 -0
- data/src/core/lib/iomgr/timer_custom.cc +96 -0
- data/src/core/lib/iomgr/timer_custom.h +43 -0
- data/src/core/lib/iomgr/timer_generic.cc +718 -0
- data/src/core/lib/iomgr/timer_generic.h +40 -0
- data/src/core/lib/iomgr/timer_heap.cc +134 -0
- data/src/core/lib/iomgr/timer_heap.h +43 -0
- data/src/core/lib/iomgr/timer_manager.cc +363 -0
- data/src/core/lib/iomgr/timer_manager.h +41 -0
- data/src/core/lib/iomgr/unix_sockets_posix.cc +108 -0
- data/src/core/lib/iomgr/unix_sockets_posix.h +49 -0
- data/src/core/lib/iomgr/unix_sockets_posix_noop.cc +62 -0
- data/src/core/lib/iomgr/wakeup_fd_eventfd.cc +82 -0
- data/src/core/lib/iomgr/wakeup_fd_nospecial.cc +39 -0
- data/src/core/lib/iomgr/wakeup_fd_pipe.cc +99 -0
- data/src/core/lib/iomgr/wakeup_fd_pipe.h +28 -0
- data/src/core/lib/iomgr/wakeup_fd_posix.cc +70 -0
- data/src/core/lib/iomgr/wakeup_fd_posix.h +98 -0
- data/src/core/lib/iomgr/work_serializer.cc +155 -0
- data/src/core/lib/iomgr/work_serializer.h +81 -0
- data/src/core/lib/json/json.h +250 -0
- data/src/core/lib/json/json_reader.cc +849 -0
- data/src/core/lib/json/json_util.cc +126 -0
- data/src/core/lib/json/json_util.h +154 -0
- data/src/core/lib/json/json_writer.cc +335 -0
- data/src/core/lib/matchers/matchers.cc +327 -0
- data/src/core/lib/matchers/matchers.h +160 -0
- data/src/core/lib/profiling/basic_timers.cc +295 -0
- data/src/core/lib/profiling/stap_timers.cc +50 -0
- data/src/core/lib/profiling/timers.h +94 -0
- data/src/core/lib/security/authorization/authorization_engine.h +44 -0
- data/src/core/lib/security/authorization/authorization_policy_provider.h +33 -0
- data/src/core/lib/security/authorization/authorization_policy_provider_vtable.cc +46 -0
- data/src/core/lib/security/authorization/evaluate_args.cc +213 -0
- data/src/core/lib/security/authorization/evaluate_args.h +91 -0
- data/src/core/lib/security/authorization/sdk_server_authz_filter.cc +171 -0
- data/src/core/lib/security/authorization/sdk_server_authz_filter.h +67 -0
- data/src/core/lib/security/context/security_context.cc +325 -0
- data/src/core/lib/security/context/security_context.h +152 -0
- data/src/core/lib/security/credentials/alts/alts_credentials.cc +111 -0
- data/src/core/lib/security/credentials/alts/alts_credentials.h +109 -0
- data/src/core/lib/security/credentials/alts/check_gcp_environment.cc +72 -0
- data/src/core/lib/security/credentials/alts/check_gcp_environment.h +57 -0
- data/src/core/lib/security/credentials/alts/check_gcp_environment_linux.cc +68 -0
- data/src/core/lib/security/credentials/alts/check_gcp_environment_no_op.cc +33 -0
- data/src/core/lib/security/credentials/alts/check_gcp_environment_windows.cc +102 -0
- data/src/core/lib/security/credentials/alts/grpc_alts_credentials_client_options.cc +127 -0
- data/src/core/lib/security/credentials/alts/grpc_alts_credentials_options.cc +46 -0
- data/src/core/lib/security/credentials/alts/grpc_alts_credentials_options.h +75 -0
- data/src/core/lib/security/credentials/alts/grpc_alts_credentials_server_options.cc +59 -0
- data/src/core/lib/security/credentials/composite/composite_credentials.cc +230 -0
- data/src/core/lib/security/credentials/composite/composite_credentials.h +106 -0
- data/src/core/lib/security/credentials/credentials.cc +164 -0
- data/src/core/lib/security/credentials/credentials.h +291 -0
- data/src/core/lib/security/credentials/credentials_metadata.cc +61 -0
- data/src/core/lib/security/credentials/external/aws_external_account_credentials.cc +404 -0
- data/src/core/lib/security/credentials/external/aws_external_account_credentials.h +81 -0
- data/src/core/lib/security/credentials/external/aws_request_signer.cc +214 -0
- data/src/core/lib/security/credentials/external/aws_request_signer.h +72 -0
- data/src/core/lib/security/credentials/external/external_account_credentials.cc +527 -0
- data/src/core/lib/security/credentials/external/external_account_credentials.h +122 -0
- data/src/core/lib/security/credentials/external/file_external_account_credentials.cc +136 -0
- data/src/core/lib/security/credentials/external/file_external_account_credentials.h +49 -0
- data/src/core/lib/security/credentials/external/url_external_account_credentials.cc +211 -0
- data/src/core/lib/security/credentials/external/url_external_account_credentials.h +60 -0
- data/src/core/lib/security/credentials/fake/fake_credentials.cc +113 -0
- data/src/core/lib/security/credentials/fake/fake_credentials.h +87 -0
- data/src/core/lib/security/credentials/google_default/credentials_generic.cc +42 -0
- data/src/core/lib/security/credentials/google_default/google_default_credentials.cc +465 -0
- data/src/core/lib/security/credentials/google_default/google_default_credentials.h +87 -0
- data/src/core/lib/security/credentials/iam/iam_credentials.cc +81 -0
- data/src/core/lib/security/credentials/iam/iam_credentials.h +49 -0
- data/src/core/lib/security/credentials/insecure/insecure_credentials.cc +64 -0
- data/src/core/lib/security/credentials/jwt/json_token.cc +288 -0
- data/src/core/lib/security/credentials/jwt/json_token.h +76 -0
- data/src/core/lib/security/credentials/jwt/jwt_credentials.cc +192 -0
- data/src/core/lib/security/credentials/jwt/jwt_credentials.h +89 -0
- data/src/core/lib/security/credentials/jwt/jwt_verifier.cc +922 -0
- data/src/core/lib/security/credentials/jwt/jwt_verifier.h +122 -0
- data/src/core/lib/security/credentials/local/local_credentials.cc +65 -0
- data/src/core/lib/security/credentials/local/local_credentials.h +61 -0
- data/src/core/lib/security/credentials/oauth2/oauth2_credentials.cc +753 -0
- data/src/core/lib/security/credentials/oauth2/oauth2_credentials.h +173 -0
- data/src/core/lib/security/credentials/plugin/plugin_credentials.cc +267 -0
- data/src/core/lib/security/credentials/plugin/plugin_credentials.h +72 -0
- data/src/core/lib/security/credentials/ssl/ssl_credentials.cc +385 -0
- data/src/core/lib/security/credentials/ssl/ssl_credentials.h +108 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_distributor.cc +348 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_distributor.h +217 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.cc +455 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_certificate_provider.h +147 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.cc +177 -0
- data/src/core/lib/security/credentials/tls/grpc_tls_credentials_options.h +193 -0
- data/src/core/lib/security/credentials/tls/tls_credentials.cc +133 -0
- data/src/core/lib/security/credentials/tls/tls_credentials.h +62 -0
- data/src/core/lib/security/credentials/tls/tls_utils.cc +123 -0
- data/src/core/lib/security/credentials/tls/tls_utils.h +51 -0
- data/src/core/lib/security/credentials/xds/xds_credentials.cc +244 -0
- data/src/core/lib/security/credentials/xds/xds_credentials.h +69 -0
- data/src/core/lib/security/security_connector/alts/alts_security_connector.cc +311 -0
- data/src/core/lib/security/security_connector/alts/alts_security_connector.h +76 -0
- data/src/core/lib/security/security_connector/fake/fake_security_connector.cc +327 -0
- data/src/core/lib/security/security_connector/fake/fake_security_connector.h +45 -0
- data/src/core/lib/security/security_connector/insecure/insecure_security_connector.cc +121 -0
- data/src/core/lib/security/security_connector/insecure/insecure_security_connector.h +97 -0
- data/src/core/lib/security/security_connector/load_system_roots.h +33 -0
- data/src/core/lib/security/security_connector/load_system_roots_fallback.cc +33 -0
- data/src/core/lib/security/security_connector/load_system_roots_linux.cc +171 -0
- data/src/core/lib/security/security_connector/load_system_roots_linux.h +46 -0
- data/src/core/lib/security/security_connector/local/local_security_connector.cc +294 -0
- data/src/core/lib/security/security_connector/local/local_security_connector.h +59 -0
- data/src/core/lib/security/security_connector/security_connector.cc +137 -0
- data/src/core/lib/security/security_connector/security_connector.h +183 -0
- data/src/core/lib/security/security_connector/ssl/ssl_security_connector.cc +453 -0
- data/src/core/lib/security/security_connector/ssl/ssl_security_connector.h +81 -0
- data/src/core/lib/security/security_connector/ssl_utils.cc +611 -0
- data/src/core/lib/security/security_connector/ssl_utils.h +188 -0
- data/src/core/lib/security/security_connector/ssl_utils_config.cc +32 -0
- data/src/core/lib/security/security_connector/ssl_utils_config.h +30 -0
- data/src/core/lib/security/security_connector/tls/tls_security_connector.cc +667 -0
- data/src/core/lib/security/security_connector/tls/tls_security_connector.h +243 -0
- data/src/core/lib/security/transport/auth_filters.h +36 -0
- data/src/core/lib/security/transport/client_auth_filter.cc +473 -0
- data/src/core/lib/security/transport/secure_endpoint.cc +442 -0
- data/src/core/lib/security/transport/secure_endpoint.h +42 -0
- data/src/core/lib/security/transport/security_handshaker.cc +642 -0
- data/src/core/lib/security/transport/security_handshaker.h +46 -0
- data/src/core/lib/security/transport/server_auth_filter.cc +331 -0
- data/src/core/lib/security/transport/tsi_error.cc +28 -0
- data/src/core/lib/security/transport/tsi_error.h +30 -0
- data/src/core/lib/security/util/json_util.cc +70 -0
- data/src/core/lib/security/util/json_util.h +45 -0
- data/src/core/lib/slice/b64.cc +239 -0
- data/src/core/lib/slice/b64.h +50 -0
- data/src/core/lib/slice/percent_encoding.cc +212 -0
- data/src/core/lib/slice/percent_encoding.h +66 -0
- data/src/core/lib/slice/slice.cc +592 -0
- data/src/core/lib/slice/slice_api.cc +39 -0
- data/src/core/lib/slice/slice_buffer.cc +413 -0
- data/src/core/lib/slice/slice_intern.cc +367 -0
- data/src/core/lib/slice/slice_internal.h +123 -0
- data/src/core/lib/slice/slice_refcount.cc +17 -0
- data/src/core/lib/slice/slice_refcount.h +121 -0
- data/src/core/lib/slice/slice_refcount_base.h +173 -0
- data/src/core/lib/slice/slice_split.cc +100 -0
- data/src/core/lib/slice/slice_split.h +40 -0
- data/src/core/lib/slice/slice_string_helpers.cc +44 -0
- data/src/core/lib/slice/slice_string_helpers.h +38 -0
- data/src/core/lib/slice/slice_utils.h +200 -0
- data/src/core/lib/slice/static_slice.cc +529 -0
- data/src/core/lib/slice/static_slice.h +331 -0
- data/src/core/lib/surface/api_trace.cc +25 -0
- data/src/core/lib/surface/api_trace.h +53 -0
- data/src/core/lib/surface/builtins.cc +49 -0
- data/src/core/lib/surface/builtins.h +26 -0
- data/src/core/lib/surface/byte_buffer.cc +92 -0
- data/src/core/lib/surface/byte_buffer_reader.cc +101 -0
- data/src/core/lib/surface/call.cc +2056 -0
- data/src/core/lib/surface/call.h +131 -0
- data/src/core/lib/surface/call_details.cc +41 -0
- data/src/core/lib/surface/call_log_batch.cc +111 -0
- data/src/core/lib/surface/call_test_only.h +43 -0
- data/src/core/lib/surface/channel.cc +535 -0
- data/src/core/lib/surface/channel.h +178 -0
- data/src/core/lib/surface/channel_init.cc +56 -0
- data/src/core/lib/surface/channel_init.h +86 -0
- data/src/core/lib/surface/channel_ping.cc +63 -0
- data/src/core/lib/surface/channel_stack_type.cc +59 -0
- data/src/core/lib/surface/channel_stack_type.h +47 -0
- data/src/core/lib/surface/completion_queue.cc +1429 -0
- data/src/core/lib/surface/completion_queue.h +98 -0
- data/src/core/lib/surface/completion_queue_factory.cc +88 -0
- data/src/core/lib/surface/completion_queue_factory.h +39 -0
- data/src/core/lib/surface/event_string.cc +62 -0
- data/src/core/lib/surface/event_string.h +31 -0
- data/src/core/lib/surface/init.cc +220 -0
- data/src/core/lib/surface/init.h +35 -0
- data/src/core/lib/surface/init_secure.cc +103 -0
- data/src/core/lib/surface/lame_client.cc +192 -0
- data/src/core/lib/surface/lame_client.h +33 -0
- data/src/core/lib/surface/metadata_array.cc +36 -0
- data/src/core/lib/surface/server.cc +1608 -0
- data/src/core/lib/surface/server.h +497 -0
- data/src/core/lib/surface/validate_metadata.cc +136 -0
- data/src/core/lib/surface/validate_metadata.h +45 -0
- data/src/core/lib/surface/version.cc +28 -0
- data/src/core/lib/transport/bdp_estimator.cc +87 -0
- data/src/core/lib/transport/bdp_estimator.h +95 -0
- data/src/core/lib/transport/byte_stream.cc +158 -0
- data/src/core/lib/transport/byte_stream.h +166 -0
- data/src/core/lib/transport/connectivity_state.cc +188 -0
- data/src/core/lib/transport/connectivity_state.h +145 -0
- data/src/core/lib/transport/error_utils.cc +191 -0
- data/src/core/lib/transport/error_utils.h +58 -0
- data/src/core/lib/transport/http2_errors.h +41 -0
- data/src/core/lib/transport/metadata.cc +714 -0
- data/src/core/lib/transport/metadata.h +449 -0
- data/src/core/lib/transport/metadata_batch.cc +94 -0
- data/src/core/lib/transport/metadata_batch.h +1055 -0
- data/src/core/lib/transport/parsed_metadata.h +263 -0
- data/src/core/lib/transport/pid_controller.cc +51 -0
- data/src/core/lib/transport/pid_controller.h +116 -0
- data/src/core/lib/transport/static_metadata.cc +1117 -0
- data/src/core/lib/transport/static_metadata.h +340 -0
- data/src/core/lib/transport/status_conversion.cc +92 -0
- data/src/core/lib/transport/status_conversion.h +38 -0
- data/src/core/lib/transport/status_metadata.cc +63 -0
- data/src/core/lib/transport/status_metadata.h +48 -0
- data/src/core/lib/transport/timeout_encoding.cc +151 -0
- data/src/core/lib/transport/timeout_encoding.h +38 -0
- data/src/core/lib/transport/transport.cc +261 -0
- data/src/core/lib/transport/transport.h +471 -0
- data/src/core/lib/transport/transport_impl.h +71 -0
- data/src/core/lib/transport/transport_op_string.cc +189 -0
- data/src/core/lib/uri/uri_parser.cc +191 -0
- data/src/core/lib/uri/uri_parser.h +87 -0
- data/src/core/plugin_registry/grpc_plugin_registry.cc +197 -0
- data/src/core/tsi/alts/crypt/aes_gcm.cc +690 -0
- data/src/core/tsi/alts/crypt/gsec.cc +190 -0
- data/src/core/tsi/alts/crypt/gsec.h +459 -0
- data/src/core/tsi/alts/frame_protector/alts_counter.cc +118 -0
- data/src/core/tsi/alts/frame_protector/alts_counter.h +98 -0
- data/src/core/tsi/alts/frame_protector/alts_crypter.cc +66 -0
- data/src/core/tsi/alts/frame_protector/alts_crypter.h +255 -0
- data/src/core/tsi/alts/frame_protector/alts_frame_protector.cc +408 -0
- data/src/core/tsi/alts/frame_protector/alts_frame_protector.h +55 -0
- data/src/core/tsi/alts/frame_protector/alts_record_protocol_crypter_common.cc +114 -0
- data/src/core/tsi/alts/frame_protector/alts_record_protocol_crypter_common.h +114 -0
- data/src/core/tsi/alts/frame_protector/alts_seal_privacy_integrity_crypter.cc +105 -0
- data/src/core/tsi/alts/frame_protector/alts_unseal_privacy_integrity_crypter.cc +103 -0
- data/src/core/tsi/alts/frame_protector/frame_handler.cc +219 -0
- data/src/core/tsi/alts/frame_protector/frame_handler.h +236 -0
- data/src/core/tsi/alts/handshaker/alts_handshaker_client.cc +903 -0
- data/src/core/tsi/alts/handshaker/alts_handshaker_client.h +160 -0
- data/src/core/tsi/alts/handshaker/alts_shared_resource.cc +83 -0
- data/src/core/tsi/alts/handshaker/alts_shared_resource.h +73 -0
- data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.cc +705 -0
- data/src/core/tsi/alts/handshaker/alts_tsi_handshaker.h +104 -0
- data/src/core/tsi/alts/handshaker/alts_tsi_handshaker_private.h +89 -0
- data/src/core/tsi/alts/handshaker/alts_tsi_utils.cc +64 -0
- data/src/core/tsi/alts/handshaker/alts_tsi_utils.h +53 -0
- data/src/core/tsi/alts/handshaker/transport_security_common_api.cc +223 -0
- data/src/core/tsi/alts/handshaker/transport_security_common_api.h +171 -0
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_integrity_only_record_protocol.cc +226 -0
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_integrity_only_record_protocol.h +54 -0
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_privacy_integrity_record_protocol.cc +144 -0
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_privacy_integrity_record_protocol.h +49 -0
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol.h +91 -0
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_common.cc +174 -0
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_grpc_record_protocol_common.h +99 -0
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol.cc +478 -0
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_iovec_record_protocol.h +199 -0
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.cc +307 -0
- data/src/core/tsi/alts/zero_copy_frame_protector/alts_zero_copy_grpc_protector.h +57 -0
- data/src/core/tsi/fake_transport_security.cc +809 -0
- data/src/core/tsi/fake_transport_security.h +47 -0
- data/src/core/tsi/local_transport_security.cc +178 -0
- data/src/core/tsi/local_transport_security.h +50 -0
- data/src/core/tsi/ssl/session_cache/ssl_session.h +71 -0
- data/src/core/tsi/ssl/session_cache/ssl_session_boringssl.cc +57 -0
- data/src/core/tsi/ssl/session_cache/ssl_session_cache.cc +179 -0
- data/src/core/tsi/ssl/session_cache/ssl_session_cache.h +92 -0
- data/src/core/tsi/ssl/session_cache/ssl_session_openssl.cc +75 -0
- data/src/core/tsi/ssl_transport_security.cc +2260 -0
- data/src/core/tsi/ssl_transport_security.h +366 -0
- data/src/core/tsi/ssl_types.h +42 -0
- data/src/core/tsi/transport_security.cc +384 -0
- data/src/core/tsi/transport_security.h +142 -0
- data/src/core/tsi/transport_security_grpc.cc +73 -0
- data/src/core/tsi/transport_security_grpc.h +80 -0
- data/src/core/tsi/transport_security_interface.h +507 -0
- data/src/ruby/bin/math_client.rb +140 -0
- data/src/ruby/bin/math_pb.rb +34 -0
- data/src/ruby/bin/math_server.rb +191 -0
- data/src/ruby/bin/math_services_pb.rb +51 -0
- data/src/ruby/bin/noproto_client.rb +93 -0
- data/src/ruby/bin/noproto_server.rb +97 -0
- data/src/ruby/ext/grpc/ext-export.clang +1 -0
- data/src/ruby/ext/grpc/ext-export.gcc +6 -0
- data/src/ruby/ext/grpc/extconf.rb +129 -0
- data/src/ruby/ext/grpc/extconf.rb.orig +130 -0
- data/src/ruby/ext/grpc/extconf.rb.rej +18 -0
- data/src/ruby/ext/grpc/rb_byte_buffer.c +65 -0
- data/src/ruby/ext/grpc/rb_byte_buffer.h +35 -0
- data/src/ruby/ext/grpc/rb_call.c +1051 -0
- data/src/ruby/ext/grpc/rb_call.h +57 -0
- data/src/ruby/ext/grpc/rb_call_credentials.c +341 -0
- data/src/ruby/ext/grpc/rb_call_credentials.h +31 -0
- data/src/ruby/ext/grpc/rb_channel.c +846 -0
- data/src/ruby/ext/grpc/rb_channel.h +34 -0
- data/src/ruby/ext/grpc/rb_channel_args.c +155 -0
- data/src/ruby/ext/grpc/rb_channel_args.h +38 -0
- data/src/ruby/ext/grpc/rb_channel_credentials.c +286 -0
- data/src/ruby/ext/grpc/rb_channel_credentials.h +37 -0
- data/src/ruby/ext/grpc/rb_completion_queue.c +101 -0
- data/src/ruby/ext/grpc/rb_completion_queue.h +36 -0
- data/src/ruby/ext/grpc/rb_compression_options.c +471 -0
- data/src/ruby/ext/grpc/rb_compression_options.h +29 -0
- data/src/ruby/ext/grpc/rb_enable_cpp.cc +22 -0
- data/src/ruby/ext/grpc/rb_event_thread.c +145 -0
- data/src/ruby/ext/grpc/rb_event_thread.h +21 -0
- data/src/ruby/ext/grpc/rb_grpc.c +333 -0
- data/src/ruby/ext/grpc/rb_grpc.h +77 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.c +605 -0
- data/src/ruby/ext/grpc/rb_grpc_imports.generated.h +913 -0
- data/src/ruby/ext/grpc/rb_loader.c +57 -0
- data/src/ruby/ext/grpc/rb_loader.h +25 -0
- data/src/ruby/ext/grpc/rb_server.c +385 -0
- data/src/ruby/ext/grpc/rb_server.h +32 -0
- data/src/ruby/ext/grpc/rb_server_credentials.c +259 -0
- data/src/ruby/ext/grpc/rb_server_credentials.h +37 -0
- data/src/ruby/ext/grpc/rb_xds_channel_credentials.c +218 -0
- data/src/ruby/ext/grpc/rb_xds_channel_credentials.h +37 -0
- data/src/ruby/ext/grpc/rb_xds_server_credentials.c +170 -0
- data/src/ruby/ext/grpc/rb_xds_server_credentials.h +37 -0
- data/src/ruby/lib/grpc/core/status_codes.rb +135 -0
- data/src/ruby/lib/grpc/core/time_consts.rb +56 -0
- data/src/ruby/lib/grpc/errors.rb +277 -0
- data/src/ruby/lib/grpc/generic/active_call.rb +669 -0
- data/src/ruby/lib/grpc/generic/bidi_call.rb +233 -0
- data/src/ruby/lib/grpc/generic/client_stub.rb +503 -0
- data/src/ruby/lib/grpc/generic/interceptor_registry.rb +53 -0
- data/src/ruby/lib/grpc/generic/interceptors.rb +186 -0
- data/src/ruby/lib/grpc/generic/rpc_desc.rb +204 -0
- data/src/ruby/lib/grpc/generic/rpc_server.rb +551 -0
- data/src/ruby/lib/grpc/generic/service.rb +211 -0
- data/src/ruby/lib/grpc/google_rpc_status_utils.rb +40 -0
- data/src/ruby/lib/grpc/grpc.rb +24 -0
- data/src/ruby/lib/grpc/logconfig.rb +44 -0
- data/src/ruby/lib/grpc/notifier.rb +45 -0
- data/src/ruby/lib/grpc/structs.rb +15 -0
- data/src/ruby/lib/grpc/version.rb +18 -0
- data/src/ruby/lib/grpc.rb +37 -0
- data/src/ruby/pb/README.md +42 -0
- data/src/ruby/pb/generate_proto_ruby.sh +51 -0
- data/src/ruby/pb/grpc/health/checker.rb +75 -0
- data/src/ruby/pb/grpc/health/v1/health_pb.rb +31 -0
- data/src/ruby/pb/grpc/health/v1/health_services_pb.rb +62 -0
- data/src/ruby/pb/grpc/testing/duplicate/echo_duplicate_services_pb.rb +44 -0
- data/src/ruby/pb/grpc/testing/metrics_pb.rb +28 -0
- data/src/ruby/pb/grpc/testing/metrics_services_pb.rb +49 -0
- data/src/ruby/pb/src/proto/grpc/testing/empty_pb.rb +17 -0
- data/src/ruby/pb/src/proto/grpc/testing/messages_pb.rb +145 -0
- data/src/ruby/pb/src/proto/grpc/testing/test_pb.rb +16 -0
- data/src/ruby/pb/src/proto/grpc/testing/test_services_pb.rb +152 -0
- data/src/ruby/spec/call_credentials_spec.rb +42 -0
- data/src/ruby/spec/call_spec.rb +180 -0
- data/src/ruby/spec/channel_connection_spec.rb +126 -0
- data/src/ruby/spec/channel_credentials_spec.rb +124 -0
- data/src/ruby/spec/channel_spec.rb +245 -0
- data/src/ruby/spec/client_auth_spec.rb +152 -0
- data/src/ruby/spec/client_server_spec.rb +664 -0
- data/src/ruby/spec/compression_options_spec.rb +149 -0
- data/src/ruby/spec/debug_message_spec.rb +134 -0
- data/src/ruby/spec/error_sanity_spec.rb +49 -0
- data/src/ruby/spec/errors_spec.rb +142 -0
- data/src/ruby/spec/errors_spec.rb.rej +11 -0
- data/src/ruby/spec/generic/active_call_spec.rb +683 -0
- data/src/ruby/spec/generic/client_interceptors_spec.rb +153 -0
- data/src/ruby/spec/generic/client_stub_spec.rb +1083 -0
- data/src/ruby/spec/generic/interceptor_registry_spec.rb +65 -0
- data/src/ruby/spec/generic/rpc_desc_spec.rb +374 -0
- data/src/ruby/spec/generic/rpc_server_pool_spec.rb +127 -0
- data/src/ruby/spec/generic/rpc_server_spec.rb +748 -0
- data/src/ruby/spec/generic/server_interceptors_spec.rb +218 -0
- data/src/ruby/spec/generic/service_spec.rb +263 -0
- data/src/ruby/spec/google_rpc_status_utils_spec.rb +282 -0
- data/src/ruby/spec/pb/codegen/grpc/testing/package_options.proto +28 -0
- data/src/ruby/spec/pb/codegen/grpc/testing/package_options_import.proto +22 -0
- data/src/ruby/spec/pb/codegen/grpc/testing/package_options_import2.proto +23 -0
- data/src/ruby/spec/pb/codegen/grpc/testing/package_options_ruby_style.proto +41 -0
- data/src/ruby/spec/pb/codegen/grpc/testing/same_package_service_name.proto +27 -0
- data/src/ruby/spec/pb/codegen/grpc/testing/same_ruby_package_service_name.proto +29 -0
- data/src/ruby/spec/pb/codegen/package_option_spec.rb +98 -0
- data/src/ruby/spec/pb/duplicate/codegen_spec.rb +57 -0
- data/src/ruby/spec/pb/health/checker_spec.rb +236 -0
- data/src/ruby/spec/server_credentials_spec.rb +104 -0
- data/src/ruby/spec/server_spec.rb +231 -0
- data/src/ruby/spec/spec_helper.rb +61 -0
- data/src/ruby/spec/support/helpers.rb +107 -0
- data/src/ruby/spec/support/services.rb +160 -0
- data/src/ruby/spec/testdata/README +1 -0
- data/src/ruby/spec/testdata/ca.pem +20 -0
- data/src/ruby/spec/testdata/client.key +28 -0
- data/src/ruby/spec/testdata/client.pem +20 -0
- data/src/ruby/spec/testdata/server1.key +28 -0
- data/src/ruby/spec/testdata/server1.pem +22 -0
- data/src/ruby/spec/time_consts_spec.rb +74 -0
- data/src/ruby/spec/user_agent_spec.rb +74 -0
- data/third_party/abseil-cpp/absl/algorithm/algorithm.h +159 -0
- data/third_party/abseil-cpp/absl/algorithm/container.h +1764 -0
- data/third_party/abseil-cpp/absl/base/attributes.h +702 -0
- data/third_party/abseil-cpp/absl/base/call_once.h +219 -0
- data/third_party/abseil-cpp/absl/base/casts.h +187 -0
- data/third_party/abseil-cpp/absl/base/config.h +742 -0
- data/third_party/abseil-cpp/absl/base/const_init.h +76 -0
- data/third_party/abseil-cpp/absl/base/dynamic_annotations.h +496 -0
- data/third_party/abseil-cpp/absl/base/internal/atomic_hook.h +200 -0
- data/third_party/abseil-cpp/absl/base/internal/cycleclock.cc +107 -0
- data/third_party/abseil-cpp/absl/base/internal/cycleclock.h +94 -0
- data/third_party/abseil-cpp/absl/base/internal/direct_mmap.h +169 -0
- data/third_party/abseil-cpp/absl/base/internal/dynamic_annotations.h +398 -0
- data/third_party/abseil-cpp/absl/base/internal/endian.h +327 -0
- data/third_party/abseil-cpp/absl/base/internal/errno_saver.h +43 -0
- data/third_party/abseil-cpp/absl/base/internal/exponential_biased.cc +93 -0
- data/third_party/abseil-cpp/absl/base/internal/exponential_biased.h +130 -0
- data/third_party/abseil-cpp/absl/base/internal/hide_ptr.h +51 -0
- data/third_party/abseil-cpp/absl/base/internal/identity.h +37 -0
- data/third_party/abseil-cpp/absl/base/internal/inline_variable.h +107 -0
- data/third_party/abseil-cpp/absl/base/internal/invoke.h +187 -0
- data/third_party/abseil-cpp/absl/base/internal/low_level_alloc.cc +620 -0
- data/third_party/abseil-cpp/absl/base/internal/low_level_alloc.h +126 -0
- data/third_party/abseil-cpp/absl/base/internal/low_level_scheduling.h +134 -0
- data/third_party/abseil-cpp/absl/base/internal/per_thread_tls.h +52 -0
- data/third_party/abseil-cpp/absl/base/internal/raw_logging.cc +242 -0
- data/third_party/abseil-cpp/absl/base/internal/raw_logging.h +195 -0
- data/third_party/abseil-cpp/absl/base/internal/scheduling_mode.h +58 -0
- data/third_party/abseil-cpp/absl/base/internal/spinlock.cc +229 -0
- data/third_party/abseil-cpp/absl/base/internal/spinlock.h +246 -0
- data/third_party/abseil-cpp/absl/base/internal/spinlock_akaros.inc +35 -0
- data/third_party/abseil-cpp/absl/base/internal/spinlock_linux.inc +74 -0
- data/third_party/abseil-cpp/absl/base/internal/spinlock_posix.inc +46 -0
- data/third_party/abseil-cpp/absl/base/internal/spinlock_wait.cc +81 -0
- data/third_party/abseil-cpp/absl/base/internal/spinlock_wait.h +93 -0
- data/third_party/abseil-cpp/absl/base/internal/spinlock_win32.inc +37 -0
- data/third_party/abseil-cpp/absl/base/internal/sysinfo.cc +439 -0
- data/third_party/abseil-cpp/absl/base/internal/sysinfo.h +74 -0
- data/third_party/abseil-cpp/absl/base/internal/thread_annotations.h +271 -0
- data/third_party/abseil-cpp/absl/base/internal/thread_identity.cc +155 -0
- data/third_party/abseil-cpp/absl/base/internal/thread_identity.h +265 -0
- data/third_party/abseil-cpp/absl/base/internal/throw_delegate.cc +212 -0
- data/third_party/abseil-cpp/absl/base/internal/throw_delegate.h +75 -0
- data/third_party/abseil-cpp/absl/base/internal/tsan_mutex_interface.h +68 -0
- data/third_party/abseil-cpp/absl/base/internal/unaligned_access.h +82 -0
- data/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.cc +138 -0
- data/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.h +124 -0
- data/third_party/abseil-cpp/absl/base/log_severity.cc +27 -0
- data/third_party/abseil-cpp/absl/base/log_severity.h +121 -0
- data/third_party/abseil-cpp/absl/base/macros.h +158 -0
- data/third_party/abseil-cpp/absl/base/optimization.h +244 -0
- data/third_party/abseil-cpp/absl/base/options.h +238 -0
- data/third_party/abseil-cpp/absl/base/policy_checks.h +111 -0
- data/third_party/abseil-cpp/absl/base/port.h +25 -0
- data/third_party/abseil-cpp/absl/base/thread_annotations.h +335 -0
- data/third_party/abseil-cpp/absl/container/fixed_array.h +532 -0
- data/third_party/abseil-cpp/absl/container/flat_hash_map.h +606 -0
- data/third_party/abseil-cpp/absl/container/inlined_vector.h +847 -0
- data/third_party/abseil-cpp/absl/container/internal/common.h +206 -0
- data/third_party/abseil-cpp/absl/container/internal/compressed_tuple.h +290 -0
- data/third_party/abseil-cpp/absl/container/internal/container_memory.h +460 -0
- data/third_party/abseil-cpp/absl/container/internal/hash_function_defaults.h +161 -0
- data/third_party/abseil-cpp/absl/container/internal/hash_policy_traits.h +208 -0
- data/third_party/abseil-cpp/absl/container/internal/hashtable_debug_hooks.h +85 -0
- data/third_party/abseil-cpp/absl/container/internal/hashtablez_sampler.cc +274 -0
- data/third_party/abseil-cpp/absl/container/internal/hashtablez_sampler.h +322 -0
- data/third_party/abseil-cpp/absl/container/internal/hashtablez_sampler_force_weak_definition.cc +31 -0
- data/third_party/abseil-cpp/absl/container/internal/have_sse.h +50 -0
- data/third_party/abseil-cpp/absl/container/internal/inlined_vector.h +967 -0
- data/third_party/abseil-cpp/absl/container/internal/layout.h +743 -0
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_map.h +197 -0
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_set.cc +61 -0
- data/third_party/abseil-cpp/absl/container/internal/raw_hash_set.h +1903 -0
- data/third_party/abseil-cpp/absl/debugging/internal/address_is_readable.cc +139 -0
- data/third_party/abseil-cpp/absl/debugging/internal/address_is_readable.h +32 -0
- data/third_party/abseil-cpp/absl/debugging/internal/demangle.cc +1949 -0
- data/third_party/abseil-cpp/absl/debugging/internal/demangle.h +71 -0
- data/third_party/abseil-cpp/absl/debugging/internal/elf_mem_image.cc +382 -0
- data/third_party/abseil-cpp/absl/debugging/internal/elf_mem_image.h +134 -0
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_aarch64-inl.inc +199 -0
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_arm-inl.inc +134 -0
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_config.h +80 -0
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_generic-inl.inc +108 -0
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_powerpc-inl.inc +253 -0
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_unimplemented-inl.inc +24 -0
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_win32-inl.inc +93 -0
- data/third_party/abseil-cpp/absl/debugging/internal/stacktrace_x86-inl.inc +346 -0
- data/third_party/abseil-cpp/absl/debugging/internal/symbolize.h +147 -0
- data/third_party/abseil-cpp/absl/debugging/internal/vdso_support.cc +173 -0
- data/third_party/abseil-cpp/absl/debugging/internal/vdso_support.h +158 -0
- data/third_party/abseil-cpp/absl/debugging/stacktrace.cc +140 -0
- data/third_party/abseil-cpp/absl/debugging/stacktrace.h +231 -0
- data/third_party/abseil-cpp/absl/debugging/symbolize.cc +36 -0
- data/third_party/abseil-cpp/absl/debugging/symbolize.h +99 -0
- data/third_party/abseil-cpp/absl/debugging/symbolize_darwin.inc +101 -0
- data/third_party/abseil-cpp/absl/debugging/symbolize_elf.inc +1560 -0
- data/third_party/abseil-cpp/absl/debugging/symbolize_unimplemented.inc +40 -0
- data/third_party/abseil-cpp/absl/debugging/symbolize_win32.inc +81 -0
- data/third_party/abseil-cpp/absl/functional/bind_front.h +184 -0
- data/third_party/abseil-cpp/absl/functional/function_ref.h +139 -0
- data/third_party/abseil-cpp/absl/functional/internal/front_binder.h +95 -0
- data/third_party/abseil-cpp/absl/functional/internal/function_ref.h +106 -0
- data/third_party/abseil-cpp/absl/hash/hash.h +325 -0
- data/third_party/abseil-cpp/absl/hash/internal/city.cc +349 -0
- data/third_party/abseil-cpp/absl/hash/internal/city.h +78 -0
- data/third_party/abseil-cpp/absl/hash/internal/hash.cc +70 -0
- data/third_party/abseil-cpp/absl/hash/internal/hash.h +1045 -0
- data/third_party/abseil-cpp/absl/hash/internal/wyhash.cc +111 -0
- data/third_party/abseil-cpp/absl/hash/internal/wyhash.h +48 -0
- data/third_party/abseil-cpp/absl/memory/memory.h +699 -0
- data/third_party/abseil-cpp/absl/meta/type_traits.h +767 -0
- data/third_party/abseil-cpp/absl/numeric/bits.h +177 -0
- data/third_party/abseil-cpp/absl/numeric/int128.cc +390 -0
- data/third_party/abseil-cpp/absl/numeric/int128.h +1092 -0
- data/third_party/abseil-cpp/absl/numeric/int128_have_intrinsic.inc +302 -0
- data/third_party/abseil-cpp/absl/numeric/int128_no_intrinsic.inc +308 -0
- data/third_party/abseil-cpp/absl/numeric/internal/bits.h +358 -0
- data/third_party/abseil-cpp/absl/numeric/internal/representation.h +55 -0
- data/third_party/abseil-cpp/absl/status/internal/status_internal.h +69 -0
- data/third_party/abseil-cpp/absl/status/internal/statusor_internal.h +396 -0
- data/third_party/abseil-cpp/absl/status/status.cc +452 -0
- data/third_party/abseil-cpp/absl/status/status.h +878 -0
- data/third_party/abseil-cpp/absl/status/status_payload_printer.cc +38 -0
- data/third_party/abseil-cpp/absl/status/status_payload_printer.h +51 -0
- data/third_party/abseil-cpp/absl/status/statusor.cc +71 -0
- data/third_party/abseil-cpp/absl/status/statusor.h +760 -0
- data/third_party/abseil-cpp/absl/strings/ascii.cc +200 -0
- data/third_party/abseil-cpp/absl/strings/ascii.h +242 -0
- data/third_party/abseil-cpp/absl/strings/charconv.cc +984 -0
- data/third_party/abseil-cpp/absl/strings/charconv.h +119 -0
- data/third_party/abseil-cpp/absl/strings/cord.cc +1953 -0
- data/third_party/abseil-cpp/absl/strings/cord.h +1394 -0
- data/third_party/abseil-cpp/absl/strings/escaping.cc +949 -0
- data/third_party/abseil-cpp/absl/strings/escaping.h +164 -0
- data/third_party/abseil-cpp/absl/strings/internal/char_map.h +156 -0
- data/third_party/abseil-cpp/absl/strings/internal/charconv_bigint.cc +359 -0
- data/third_party/abseil-cpp/absl/strings/internal/charconv_bigint.h +423 -0
- data/third_party/abseil-cpp/absl/strings/internal/charconv_parse.cc +504 -0
- data/third_party/abseil-cpp/absl/strings/internal/charconv_parse.h +99 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_internal.cc +83 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_internal.h +543 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_flat.h +146 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_ring.cc +897 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_ring.h +589 -0
- data/third_party/abseil-cpp/absl/strings/internal/cord_rep_ring_reader.h +114 -0
- data/third_party/abseil-cpp/absl/strings/internal/escaping.cc +180 -0
- data/third_party/abseil-cpp/absl/strings/internal/escaping.h +58 -0
- data/third_party/abseil-cpp/absl/strings/internal/memutil.cc +112 -0
- data/third_party/abseil-cpp/absl/strings/internal/memutil.h +148 -0
- data/third_party/abseil-cpp/absl/strings/internal/ostringstream.cc +36 -0
- data/third_party/abseil-cpp/absl/strings/internal/ostringstream.h +89 -0
- data/third_party/abseil-cpp/absl/strings/internal/resize_uninitialized.h +73 -0
- data/third_party/abseil-cpp/absl/strings/internal/stl_type_traits.h +248 -0
- data/third_party/abseil-cpp/absl/strings/internal/str_format/arg.cc +488 -0
- data/third_party/abseil-cpp/absl/strings/internal/str_format/arg.h +518 -0
- data/third_party/abseil-cpp/absl/strings/internal/str_format/bind.cc +259 -0
- data/third_party/abseil-cpp/absl/strings/internal/str_format/bind.h +217 -0
- data/third_party/abseil-cpp/absl/strings/internal/str_format/checker.h +333 -0
- data/third_party/abseil-cpp/absl/strings/internal/str_format/extension.cc +75 -0
- data/third_party/abseil-cpp/absl/strings/internal/str_format/extension.h +427 -0
- data/third_party/abseil-cpp/absl/strings/internal/str_format/float_conversion.cc +1423 -0
- data/third_party/abseil-cpp/absl/strings/internal/str_format/float_conversion.h +37 -0
- data/third_party/abseil-cpp/absl/strings/internal/str_format/output.cc +72 -0
- data/third_party/abseil-cpp/absl/strings/internal/str_format/output.h +96 -0
- data/third_party/abseil-cpp/absl/strings/internal/str_format/parser.cc +350 -0
- data/third_party/abseil-cpp/absl/strings/internal/str_format/parser.h +349 -0
- data/third_party/abseil-cpp/absl/strings/internal/str_join_internal.h +314 -0
- data/third_party/abseil-cpp/absl/strings/internal/str_split_internal.h +430 -0
- data/third_party/abseil-cpp/absl/strings/internal/string_constant.h +64 -0
- data/third_party/abseil-cpp/absl/strings/internal/utf8.cc +53 -0
- data/third_party/abseil-cpp/absl/strings/internal/utf8.h +50 -0
- data/third_party/abseil-cpp/absl/strings/match.cc +43 -0
- data/third_party/abseil-cpp/absl/strings/match.h +100 -0
- data/third_party/abseil-cpp/absl/strings/numbers.cc +1093 -0
- data/third_party/abseil-cpp/absl/strings/numbers.h +266 -0
- data/third_party/abseil-cpp/absl/strings/str_cat.cc +246 -0
- data/third_party/abseil-cpp/absl/strings/str_cat.h +408 -0
- data/third_party/abseil-cpp/absl/strings/str_format.h +813 -0
- data/third_party/abseil-cpp/absl/strings/str_join.h +293 -0
- data/third_party/abseil-cpp/absl/strings/str_replace.cc +82 -0
- data/third_party/abseil-cpp/absl/strings/str_replace.h +219 -0
- data/third_party/abseil-cpp/absl/strings/str_split.cc +139 -0
- data/third_party/abseil-cpp/absl/strings/str_split.h +548 -0
- data/third_party/abseil-cpp/absl/strings/string_view.cc +235 -0
- data/third_party/abseil-cpp/absl/strings/string_view.h +629 -0
- data/third_party/abseil-cpp/absl/strings/strip.h +91 -0
- data/third_party/abseil-cpp/absl/strings/substitute.cc +171 -0
- data/third_party/abseil-cpp/absl/strings/substitute.h +696 -0
- data/third_party/abseil-cpp/absl/synchronization/barrier.cc +52 -0
- data/third_party/abseil-cpp/absl/synchronization/barrier.h +79 -0
- data/third_party/abseil-cpp/absl/synchronization/blocking_counter.cc +57 -0
- data/third_party/abseil-cpp/absl/synchronization/blocking_counter.h +99 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/create_thread_identity.cc +140 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/create_thread_identity.h +60 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/futex.h +154 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.cc +698 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/graphcycles.h +141 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/kernel_timeout.h +156 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/per_thread_sem.cc +106 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/per_thread_sem.h +115 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/waiter.cc +428 -0
- data/third_party/abseil-cpp/absl/synchronization/internal/waiter.h +155 -0
- data/third_party/abseil-cpp/absl/synchronization/mutex.cc +2751 -0
- data/third_party/abseil-cpp/absl/synchronization/mutex.h +1082 -0
- data/third_party/abseil-cpp/absl/synchronization/notification.cc +78 -0
- data/third_party/abseil-cpp/absl/synchronization/notification.h +123 -0
- data/third_party/abseil-cpp/absl/time/civil_time.cc +175 -0
- data/third_party/abseil-cpp/absl/time/civil_time.h +538 -0
- data/third_party/abseil-cpp/absl/time/clock.cc +585 -0
- data/third_party/abseil-cpp/absl/time/clock.h +74 -0
- data/third_party/abseil-cpp/absl/time/duration.cc +954 -0
- data/third_party/abseil-cpp/absl/time/format.cc +160 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/include/cctz/civil_time.h +332 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/include/cctz/civil_time_detail.h +628 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/include/cctz/time_zone.h +386 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/include/cctz/zone_info_source.h +102 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/civil_time_detail.cc +94 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_fixed.cc +140 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_fixed.h +52 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_format.cc +1029 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_if.cc +45 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_if.h +76 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_impl.cc +113 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_impl.h +93 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_info.cc +965 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_info.h +137 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_libc.cc +315 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_libc.h +55 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_lookup.cc +187 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_posix.cc +159 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_posix.h +132 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/tzfile.h +122 -0
- data/third_party/abseil-cpp/absl/time/internal/cctz/src/zone_info_source.cc +116 -0
- data/third_party/abseil-cpp/absl/time/internal/get_current_time_chrono.inc +31 -0
- data/third_party/abseil-cpp/absl/time/internal/get_current_time_posix.inc +24 -0
- data/third_party/abseil-cpp/absl/time/time.cc +500 -0
- data/third_party/abseil-cpp/absl/time/time.h +1585 -0
- data/third_party/abseil-cpp/absl/types/bad_optional_access.cc +48 -0
- data/third_party/abseil-cpp/absl/types/bad_optional_access.h +78 -0
- data/third_party/abseil-cpp/absl/types/bad_variant_access.cc +64 -0
- data/third_party/abseil-cpp/absl/types/bad_variant_access.h +82 -0
- data/third_party/abseil-cpp/absl/types/internal/optional.h +396 -0
- data/third_party/abseil-cpp/absl/types/internal/span.h +128 -0
- data/third_party/abseil-cpp/absl/types/internal/variant.h +1646 -0
- data/third_party/abseil-cpp/absl/types/optional.h +776 -0
- data/third_party/abseil-cpp/absl/types/span.h +726 -0
- data/third_party/abseil-cpp/absl/types/variant.h +866 -0
- data/third_party/abseil-cpp/absl/utility/utility.h +350 -0
- data/third_party/address_sorting/address_sorting.c +375 -0
- data/third_party/address_sorting/address_sorting_internal.h +70 -0
- data/third_party/address_sorting/address_sorting_posix.c +98 -0
- data/third_party/address_sorting/address_sorting_windows.c +95 -0
- data/third_party/address_sorting/include/address_sorting/address_sorting.h +115 -0
- data/third_party/boringssl-with-bazel/err_data.c +1489 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_bitstr.c +276 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_bool.c +122 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_d2i_fp.c +91 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_dup.c +87 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_enum.c +195 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_gentm.c +266 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_i2d_fp.c +88 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_int.c +420 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_mbstr.c +298 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_object.c +288 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_octet.c +77 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_print.c +83 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_strex.c +650 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_strnid.c +266 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_time.c +212 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_type.c +163 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_utctm.c +264 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/a_utf8.c +236 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/asn1_lib.c +440 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/asn1_par.c +80 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/asn_pack.c +105 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/charmap.h +15 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/f_enum.c +93 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/f_int.c +97 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/f_string.c +91 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/internal.h +196 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_dec.c +1193 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_enc.c +709 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_fre.c +233 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_new.c +332 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_typ.c +129 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/tasn_utl.c +281 -0
- data/third_party/boringssl-with-bazel/src/crypto/asn1/time_support.c +206 -0
- data/third_party/boringssl-with-bazel/src/crypto/base64/base64.c +469 -0
- data/third_party/boringssl-with-bazel/src/crypto/bio/bio.c +702 -0
- data/third_party/boringssl-with-bazel/src/crypto/bio/bio_mem.c +324 -0
- data/third_party/boringssl-with-bazel/src/crypto/bio/connect.c +541 -0
- data/third_party/boringssl-with-bazel/src/crypto/bio/fd.c +275 -0
- data/third_party/boringssl-with-bazel/src/crypto/bio/file.c +311 -0
- data/third_party/boringssl-with-bazel/src/crypto/bio/hexdump.c +192 -0
- data/third_party/boringssl-with-bazel/src/crypto/bio/internal.h +111 -0
- data/third_party/boringssl-with-bazel/src/crypto/bio/pair.c +483 -0
- data/third_party/boringssl-with-bazel/src/crypto/bio/printf.c +115 -0
- data/third_party/boringssl-with-bazel/src/crypto/bio/socket.c +192 -0
- data/third_party/boringssl-with-bazel/src/crypto/bio/socket_helper.c +122 -0
- data/third_party/boringssl-with-bazel/src/crypto/blake2/blake2.c +156 -0
- data/third_party/boringssl-with-bazel/src/crypto/bn_extra/bn_asn1.c +57 -0
- data/third_party/boringssl-with-bazel/src/crypto/bn_extra/convert.c +470 -0
- data/third_party/boringssl-with-bazel/src/crypto/buf/buf.c +172 -0
- data/third_party/boringssl-with-bazel/src/crypto/bytestring/asn1_compat.c +52 -0
- data/third_party/boringssl-with-bazel/src/crypto/bytestring/ber.c +264 -0
- data/third_party/boringssl-with-bazel/src/crypto/bytestring/cbb.c +728 -0
- data/third_party/boringssl-with-bazel/src/crypto/bytestring/cbs.c +711 -0
- data/third_party/boringssl-with-bazel/src/crypto/bytestring/internal.h +96 -0
- data/third_party/boringssl-with-bazel/src/crypto/bytestring/unicode.c +155 -0
- data/third_party/boringssl-with-bazel/src/crypto/chacha/chacha.c +175 -0
- data/third_party/boringssl-with-bazel/src/crypto/chacha/internal.h +45 -0
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/cipher_extra.c +127 -0
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/derive_key.c +152 -0
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/e_aesccm.c +447 -0
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/e_aesctrhmac.c +283 -0
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/e_aesgcmsiv.c +891 -0
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/e_chacha20poly1305.c +343 -0
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/e_null.c +85 -0
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/e_rc2.c +462 -0
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/e_rc4.c +87 -0
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/e_tls.c +601 -0
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/internal.h +226 -0
- data/third_party/boringssl-with-bazel/src/crypto/cipher_extra/tls_cbc.c +338 -0
- data/third_party/boringssl-with-bazel/src/crypto/cmac/cmac.c +278 -0
- data/third_party/boringssl-with-bazel/src/crypto/conf/conf.c +821 -0
- data/third_party/boringssl-with-bazel/src/crypto/conf/conf_def.h +127 -0
- data/third_party/boringssl-with-bazel/src/crypto/conf/internal.h +31 -0
- data/third_party/boringssl-with-bazel/src/crypto/cpu-aarch64-fuchsia.c +55 -0
- data/third_party/boringssl-with-bazel/src/crypto/cpu-aarch64-linux.c +62 -0
- data/third_party/boringssl-with-bazel/src/crypto/cpu-aarch64-win.c +41 -0
- data/third_party/boringssl-with-bazel/src/crypto/cpu-arm-linux.c +229 -0
- data/third_party/boringssl-with-bazel/src/crypto/cpu-arm-linux.h +201 -0
- data/third_party/boringssl-with-bazel/src/crypto/cpu-arm.c +38 -0
- data/third_party/boringssl-with-bazel/src/crypto/cpu-intel.c +291 -0
- data/third_party/boringssl-with-bazel/src/crypto/cpu-ppc64le.c +38 -0
- data/third_party/boringssl-with-bazel/src/crypto/crypto.c +226 -0
- data/third_party/boringssl-with-bazel/src/crypto/curve25519/curve25519.c +2159 -0
- data/third_party/boringssl-with-bazel/src/crypto/curve25519/curve25519_tables.h +7872 -0
- data/third_party/boringssl-with-bazel/src/crypto/curve25519/internal.h +146 -0
- data/third_party/boringssl-with-bazel/src/crypto/curve25519/spake25519.c +539 -0
- data/third_party/boringssl-with-bazel/src/crypto/dh_extra/dh_asn1.c +160 -0
- data/third_party/boringssl-with-bazel/src/crypto/dh_extra/params.c +272 -0
- data/third_party/boringssl-with-bazel/src/crypto/digest_extra/digest_extra.c +268 -0
- data/third_party/boringssl-with-bazel/src/crypto/dsa/dsa.c +946 -0
- data/third_party/boringssl-with-bazel/src/crypto/dsa/dsa_asn1.c +390 -0
- data/third_party/boringssl-with-bazel/src/crypto/dsa/internal.h +34 -0
- data/third_party/boringssl-with-bazel/src/crypto/ec_extra/ec_asn1.c +559 -0
- data/third_party/boringssl-with-bazel/src/crypto/ec_extra/ec_derive.c +95 -0
- data/third_party/boringssl-with-bazel/src/crypto/ec_extra/hash_to_curve.c +385 -0
- data/third_party/boringssl-with-bazel/src/crypto/ec_extra/internal.h +56 -0
- data/third_party/boringssl-with-bazel/src/crypto/ecdh_extra/ecdh_extra.c +124 -0
- data/third_party/boringssl-with-bazel/src/crypto/ecdsa_extra/ecdsa_asn1.c +267 -0
- data/third_party/boringssl-with-bazel/src/crypto/engine/engine.c +99 -0
- data/third_party/boringssl-with-bazel/src/crypto/err/err.c +857 -0
- data/third_party/boringssl-with-bazel/src/crypto/err/internal.h +58 -0
- data/third_party/boringssl-with-bazel/src/crypto/evp/digestsign.c +231 -0
- data/third_party/boringssl-with-bazel/src/crypto/evp/evp.c +456 -0
- data/third_party/boringssl-with-bazel/src/crypto/evp/evp_asn1.c +547 -0
- data/third_party/boringssl-with-bazel/src/crypto/evp/evp_ctx.c +484 -0
- data/third_party/boringssl-with-bazel/src/crypto/evp/internal.h +269 -0
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_dsa_asn1.c +277 -0
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_ec.c +286 -0
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_ec_asn1.c +255 -0
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_ed25519.c +104 -0
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_ed25519_asn1.c +221 -0
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_rsa.c +648 -0
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_rsa_asn1.c +194 -0
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_x25519.c +110 -0
- data/third_party/boringssl-with-bazel/src/crypto/evp/p_x25519_asn1.c +248 -0
- data/third_party/boringssl-with-bazel/src/crypto/evp/pbkdf.c +146 -0
- data/third_party/boringssl-with-bazel/src/crypto/evp/print.c +489 -0
- data/third_party/boringssl-with-bazel/src/crypto/evp/scrypt.c +211 -0
- data/third_party/boringssl-with-bazel/src/crypto/evp/sign.c +151 -0
- data/third_party/boringssl-with-bazel/src/crypto/ex_data.c +261 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/aes/aes.c +108 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/aes/aes_nohw.c +1282 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/aes/internal.h +238 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/aes/key_wrap.c +236 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/aes/mode_wrappers.c +122 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bcm.c +266 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/add.c +316 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/asm/x86_64-gcc.c +541 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/bn.c +438 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/bytes.c +230 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/cmp.c +200 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/ctx.c +236 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/div.c +902 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/div_extra.c +87 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/exponentiation.c +1288 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/gcd.c +378 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/gcd_extra.c +326 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/generic.c +711 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/internal.h +715 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/jacobi.c +146 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/montgomery.c +502 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/montgomery_inv.c +186 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/mul.c +749 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/prime.c +1064 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/random.c +341 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/rsaz_exp.c +226 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/rsaz_exp.h +104 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/shift.c +364 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/bn/sqrt.c +498 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/aead.c +284 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/cipher.c +636 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/e_aes.c +1473 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/e_des.c +237 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/cipher/internal.h +128 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/delocate.h +89 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/des/des.c +784 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/des/internal.h +238 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/dh/check.c +217 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/dh/dh.c +456 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/digest/digest.c +282 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/digest/digests.c +304 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/digest/internal.h +112 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/digest/md32_common.h +195 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/ec.c +1268 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/ec_key.c +472 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/ec_montgomery.c +524 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/felem.c +100 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/internal.h +772 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/oct.c +328 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p224-64.c +1180 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p256-x86_64-table.h +9497 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p256-x86_64.c +633 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p256-x86_64.h +153 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p256.c +740 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/p256_table.h +297 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/scalar.c +175 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/simple.c +357 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/simple_mul.c +270 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/util.c +255 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ec/wnaf.c +270 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ecdh/ecdh.c +122 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ecdsa/ecdsa.c +339 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/ecdsa/internal.h +39 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/fips_shared_support.c +32 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/hmac/hmac.c +228 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/md4/md4.c +240 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/md5/internal.h +37 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/md5/md5.c +284 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/cbc.c +178 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/cfb.c +203 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/ctr.c +201 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/gcm.c +733 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/gcm_nohw.c +304 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/internal.h +420 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/ofb.c +97 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/modes/polyval.c +91 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/ctrdrbg.c +202 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/fork_detect.c +137 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/fork_detect.h +49 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/getrandom_fillin.h +64 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/internal.h +184 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/rand.c +457 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rand/urandom.c +401 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/blinding.c +243 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/internal.h +131 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/padding.c +695 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/rsa.c +935 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/rsa/rsa_impl.c +1416 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/self_check/fips.c +79 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/self_check/self_check.c +874 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/internal.h +53 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/sha1-altivec.c +361 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/sha1.c +357 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/sha256.c +321 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/sha/sha512.c +508 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/tls/internal.h +39 -0
- data/third_party/boringssl-with-bazel/src/crypto/fipsmodule/tls/kdf.c +165 -0
- data/third_party/boringssl-with-bazel/src/crypto/hkdf/hkdf.c +112 -0
- data/third_party/boringssl-with-bazel/src/crypto/hpke/hpke.c +618 -0
- data/third_party/boringssl-with-bazel/src/crypto/hrss/hrss.c +2198 -0
- data/third_party/boringssl-with-bazel/src/crypto/hrss/internal.h +68 -0
- data/third_party/boringssl-with-bazel/src/crypto/internal.h +959 -0
- data/third_party/boringssl-with-bazel/src/crypto/lhash/internal.h +253 -0
- data/third_party/boringssl-with-bazel/src/crypto/lhash/lhash.c +353 -0
- data/third_party/boringssl-with-bazel/src/crypto/mem.c +392 -0
- data/third_party/boringssl-with-bazel/src/crypto/obj/obj.c +553 -0
- data/third_party/boringssl-with-bazel/src/crypto/obj/obj_dat.h +11585 -0
- data/third_party/boringssl-with-bazel/src/crypto/obj/obj_xref.c +122 -0
- data/third_party/boringssl-with-bazel/src/crypto/pem/pem_all.c +252 -0
- data/third_party/boringssl-with-bazel/src/crypto/pem/pem_info.c +358 -0
- data/third_party/boringssl-with-bazel/src/crypto/pem/pem_lib.c +769 -0
- data/third_party/boringssl-with-bazel/src/crypto/pem/pem_oth.c +87 -0
- data/third_party/boringssl-with-bazel/src/crypto/pem/pem_pk8.c +255 -0
- data/third_party/boringssl-with-bazel/src/crypto/pem/pem_pkey.c +214 -0
- data/third_party/boringssl-with-bazel/src/crypto/pem/pem_x509.c +65 -0
- data/third_party/boringssl-with-bazel/src/crypto/pem/pem_xaux.c +65 -0
- data/third_party/boringssl-with-bazel/src/crypto/pkcs7/internal.h +58 -0
- data/third_party/boringssl-with-bazel/src/crypto/pkcs7/pkcs7.c +164 -0
- data/third_party/boringssl-with-bazel/src/crypto/pkcs7/pkcs7_x509.c +526 -0
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/internal.h +138 -0
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/p5_pbev2.c +316 -0
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/pkcs8.c +530 -0
- data/third_party/boringssl-with-bazel/src/crypto/pkcs8/pkcs8_x509.c +1383 -0
- data/third_party/boringssl-with-bazel/src/crypto/poly1305/internal.h +41 -0
- data/third_party/boringssl-with-bazel/src/crypto/poly1305/poly1305.c +321 -0
- data/third_party/boringssl-with-bazel/src/crypto/poly1305/poly1305_arm.c +307 -0
- data/third_party/boringssl-with-bazel/src/crypto/poly1305/poly1305_vec.c +860 -0
- data/third_party/boringssl-with-bazel/src/crypto/pool/internal.h +45 -0
- data/third_party/boringssl-with-bazel/src/crypto/pool/pool.c +221 -0
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/deterministic.c +56 -0
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/forkunsafe.c +46 -0
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/fuchsia.c +34 -0
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/passive.c +34 -0
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/rand_extra.c +74 -0
- data/third_party/boringssl-with-bazel/src/crypto/rand_extra/windows.c +73 -0
- data/third_party/boringssl-with-bazel/src/crypto/rc4/rc4.c +98 -0
- data/third_party/boringssl-with-bazel/src/crypto/refcount_c11.c +67 -0
- data/third_party/boringssl-with-bazel/src/crypto/refcount_lock.c +53 -0
- data/third_party/boringssl-with-bazel/src/crypto/rsa_extra/rsa_asn1.c +324 -0
- data/third_party/boringssl-with-bazel/src/crypto/rsa_extra/rsa_print.c +22 -0
- data/third_party/boringssl-with-bazel/src/crypto/siphash/siphash.c +82 -0
- data/third_party/boringssl-with-bazel/src/crypto/stack/stack.c +425 -0
- data/third_party/boringssl-with-bazel/src/crypto/thread.c +110 -0
- data/third_party/boringssl-with-bazel/src/crypto/thread_none.c +59 -0
- data/third_party/boringssl-with-bazel/src/crypto/thread_pthread.c +182 -0
- data/third_party/boringssl-with-bazel/src/crypto/thread_win.c +260 -0
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/internal.h +318 -0
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/pmbtoken.c +1399 -0
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/trust_token.c +858 -0
- data/third_party/boringssl-with-bazel/src/crypto/trust_token/voprf.c +766 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/a_digest.c +96 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/a_sign.c +128 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/a_verify.c +118 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/algorithm.c +163 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/asn1_gen.c +842 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/by_dir.c +459 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/by_file.c +277 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/i2d_pr.c +83 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/internal.h +398 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/name_print.c +246 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/rsa_pss.c +400 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/t_crl.c +130 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/t_req.c +246 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/t_x509.c +365 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/t_x509a.c +116 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509.c +90 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_att.c +358 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_cmp.c +461 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_d2.c +106 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_def.c +103 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_ext.c +212 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_lu.c +830 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_obj.c +199 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_req.c +304 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_set.c +240 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_trs.c +331 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_txt.c +204 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_v3.c +281 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_vfy.c +2456 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509_vpm.c +651 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509cset.c +284 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509name.c +388 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509rset.c +84 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x509spki.c +137 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_algor.c +153 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_all.c +386 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_attrib.c +98 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_crl.c +565 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_exten.c +77 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_info.c +98 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_name.c +544 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_pkey.c +106 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_pubkey.c +217 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_req.c +106 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_sig.c +94 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_spki.c +80 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_val.c +71 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_x509.c +394 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509/x_x509a.c +201 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/ext_dat.h +138 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/internal.h +84 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/pcy_cache.c +287 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/pcy_data.c +132 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/pcy_int.h +217 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/pcy_lib.c +155 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/pcy_map.c +131 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/pcy_node.c +189 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/pcy_tree.c +843 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_akey.c +226 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_akeya.c +72 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_alt.c +639 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_bcons.c +133 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_bitst.c +144 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_conf.c +468 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_cpols.c +501 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_crld.c +563 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_enum.c +106 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_extku.c +148 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_genn.c +266 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_ia5.c +121 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_info.c +218 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_int.c +91 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_lib.c +362 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_ncons.c +558 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_ocsp.c +68 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_pci.c +289 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_pcia.c +57 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_pcons.c +139 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_pmaps.c +154 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_prn.c +230 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_purp.c +929 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_skey.c +156 -0
- data/third_party/boringssl-with-bazel/src/crypto/x509v3/v3_utl.c +1437 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/aead.h +480 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/aes.h +207 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/arm_arch.h +240 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/asn1.h +1321 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/asn1_mac.h +18 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/asn1t.h +718 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/base.h +628 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/base64.h +190 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/bio.h +939 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/blake2.h +62 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/blowfish.h +93 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/bn.h +1057 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/buf.h +137 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/buffer.h +18 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/bytestring.h +586 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/cast.h +96 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/chacha.h +41 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/cipher.h +661 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/cmac.h +91 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/conf.h +183 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/cpu.h +202 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/crypto.h +169 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/curve25519.h +201 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/des.h +183 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/dh.h +361 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/digest.h +348 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/dsa.h +457 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/dtls1.h +16 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/e_os2.h +18 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/ec.h +442 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/ec_key.h +372 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/ecdh.h +118 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/ecdsa.h +238 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/engine.h +109 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/err.h +466 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/evp.h +1109 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/evp_errors.h +99 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/ex_data.h +203 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/hkdf.h +68 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/hmac.h +186 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/hpke.h +350 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/hrss.h +102 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/is_boringssl.h +16 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/lhash.h +81 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/md4.h +108 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/md5.h +109 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/mem.h +184 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/nid.h +4259 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/obj.h +256 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/obj_mac.h +18 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/objects.h +18 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/opensslconf.h +70 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/opensslv.h +18 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/ossl_typ.h +18 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/pem.h +483 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/pkcs12.h +18 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/pkcs7.h +240 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/pkcs8.h +277 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/poly1305.h +49 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/pool.h +102 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/rand.h +114 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/rc4.h +96 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/ripemd.h +108 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/rsa.h +859 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/safestack.h +16 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/sha.h +294 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/siphash.h +37 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/span.h +222 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/srtp.h +18 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/ssl.h +5606 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/ssl3.h +333 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/stack.h +542 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/thread.h +191 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/tls1.h +647 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/trust_token.h +310 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/type_check.h +90 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/x509.h +2450 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/x509_vfy.h +18 -0
- data/third_party/boringssl-with-bazel/src/include/openssl/x509v3.h +1020 -0
- data/third_party/boringssl-with-bazel/src/ssl/bio_ssl.cc +192 -0
- data/third_party/boringssl-with-bazel/src/ssl/d1_both.cc +835 -0
- data/third_party/boringssl-with-bazel/src/ssl/d1_lib.cc +268 -0
- data/third_party/boringssl-with-bazel/src/ssl/d1_pkt.cc +273 -0
- data/third_party/boringssl-with-bazel/src/ssl/d1_srtp.cc +232 -0
- data/third_party/boringssl-with-bazel/src/ssl/dtls_method.cc +200 -0
- data/third_party/boringssl-with-bazel/src/ssl/dtls_record.cc +353 -0
- data/third_party/boringssl-with-bazel/src/ssl/encrypted_client_hello.cc +1084 -0
- data/third_party/boringssl-with-bazel/src/ssl/extensions.cc +4325 -0
- data/third_party/boringssl-with-bazel/src/ssl/handoff.cc +986 -0
- data/third_party/boringssl-with-bazel/src/ssl/handshake.cc +758 -0
- data/third_party/boringssl-with-bazel/src/ssl/handshake_client.cc +1986 -0
- data/third_party/boringssl-with-bazel/src/ssl/handshake_server.cc +1956 -0
- data/third_party/boringssl-with-bazel/src/ssl/internal.h +3953 -0
- data/third_party/boringssl-with-bazel/src/ssl/s3_both.cc +730 -0
- data/third_party/boringssl-with-bazel/src/ssl/s3_lib.cc +219 -0
- data/third_party/boringssl-with-bazel/src/ssl/s3_pkt.cc +453 -0
- data/third_party/boringssl-with-bazel/src/ssl/ssl_aead_ctx.cc +432 -0
- data/third_party/boringssl-with-bazel/src/ssl/ssl_asn1.cc +896 -0
- data/third_party/boringssl-with-bazel/src/ssl/ssl_buffer.cc +306 -0
- data/third_party/boringssl-with-bazel/src/ssl/ssl_cert.cc +1014 -0
- data/third_party/boringssl-with-bazel/src/ssl/ssl_cipher.cc +1717 -0
- data/third_party/boringssl-with-bazel/src/ssl/ssl_file.cc +585 -0
- data/third_party/boringssl-with-bazel/src/ssl/ssl_key_share.cc +400 -0
- data/third_party/boringssl-with-bazel/src/ssl/ssl_lib.cc +3068 -0
- data/third_party/boringssl-with-bazel/src/ssl/ssl_privkey.cc +837 -0
- data/third_party/boringssl-with-bazel/src/ssl/ssl_session.cc +1342 -0
- data/third_party/boringssl-with-bazel/src/ssl/ssl_stat.cc +233 -0
- data/third_party/boringssl-with-bazel/src/ssl/ssl_transcript.cc +272 -0
- data/third_party/boringssl-with-bazel/src/ssl/ssl_versions.cc +398 -0
- data/third_party/boringssl-with-bazel/src/ssl/ssl_x509.cc +1363 -0
- data/third_party/boringssl-with-bazel/src/ssl/t1_enc.cc +384 -0
- data/third_party/boringssl-with-bazel/src/ssl/tls13_both.cc +733 -0
- data/third_party/boringssl-with-bazel/src/ssl/tls13_client.cc +1122 -0
- data/third_party/boringssl-with-bazel/src/ssl/tls13_enc.cc +582 -0
- data/third_party/boringssl-with-bazel/src/ssl/tls13_server.cc +1349 -0
- data/third_party/boringssl-with-bazel/src/ssl/tls_method.cc +319 -0
- data/third_party/boringssl-with-bazel/src/ssl/tls_record.cc +705 -0
- data/third_party/boringssl-with-bazel/src/third_party/fiat/curve25519_32.h +981 -0
- data/third_party/boringssl-with-bazel/src/third_party/fiat/curve25519_64.h +619 -0
- data/third_party/boringssl-with-bazel/src/third_party/fiat/p256_32.h +3147 -0
- data/third_party/boringssl-with-bazel/src/third_party/fiat/p256_64.h +1226 -0
- data/third_party/cares/ares_build.h +223 -0
- data/third_party/cares/cares/ares.h +670 -0
- data/third_party/cares/cares/ares__close_sockets.c +61 -0
- data/third_party/cares/cares/ares__get_hostent.c +261 -0
- data/third_party/cares/cares/ares__read_line.c +73 -0
- data/third_party/cares/cares/ares__timeval.c +111 -0
- data/third_party/cares/cares/ares_cancel.c +63 -0
- data/third_party/cares/cares/ares_create_query.c +206 -0
- data/third_party/cares/cares/ares_data.c +222 -0
- data/third_party/cares/cares/ares_data.h +72 -0
- data/third_party/cares/cares/ares_destroy.c +113 -0
- data/third_party/cares/cares/ares_dns.h +103 -0
- data/third_party/cares/cares/ares_expand_name.c +209 -0
- data/third_party/cares/cares/ares_expand_string.c +70 -0
- data/third_party/cares/cares/ares_fds.c +59 -0
- data/third_party/cares/cares/ares_free_hostent.c +41 -0
- data/third_party/cares/cares/ares_free_string.c +25 -0
- data/third_party/cares/cares/ares_getenv.c +30 -0
- data/third_party/cares/cares/ares_getenv.h +26 -0
- data/third_party/cares/cares/ares_gethostbyaddr.c +294 -0
- data/third_party/cares/cares/ares_gethostbyname.c +529 -0
- data/third_party/cares/cares/ares_getnameinfo.c +453 -0
- data/third_party/cares/cares/ares_getopt.c +122 -0
- data/third_party/cares/cares/ares_getopt.h +53 -0
- data/third_party/cares/cares/ares_getsock.c +66 -0
- data/third_party/cares/cares/ares_inet_net_pton.h +25 -0
- data/third_party/cares/cares/ares_init.c +2615 -0
- data/third_party/cares/cares/ares_iphlpapi.h +221 -0
- data/third_party/cares/cares/ares_ipv6.h +78 -0
- data/third_party/cares/cares/ares_library_init.c +195 -0
- data/third_party/cares/cares/ares_library_init.h +43 -0
- data/third_party/cares/cares/ares_llist.c +63 -0
- data/third_party/cares/cares/ares_llist.h +39 -0
- data/third_party/cares/cares/ares_mkquery.c +24 -0
- data/third_party/cares/cares/ares_nowarn.c +260 -0
- data/third_party/cares/cares/ares_nowarn.h +61 -0
- data/third_party/cares/cares/ares_options.c +406 -0
- data/third_party/cares/cares/ares_parse_a_reply.c +264 -0
- data/third_party/cares/cares/ares_parse_aaaa_reply.c +264 -0
- data/third_party/cares/cares/ares_parse_mx_reply.c +170 -0
- data/third_party/cares/cares/ares_parse_naptr_reply.c +194 -0
- data/third_party/cares/cares/ares_parse_ns_reply.c +183 -0
- data/third_party/cares/cares/ares_parse_ptr_reply.c +221 -0
- data/third_party/cares/cares/ares_parse_soa_reply.c +133 -0
- data/third_party/cares/cares/ares_parse_srv_reply.c +179 -0
- data/third_party/cares/cares/ares_parse_txt_reply.c +220 -0
- data/third_party/cares/cares/ares_platform.c +11042 -0
- data/third_party/cares/cares/ares_platform.h +43 -0
- data/third_party/cares/cares/ares_private.h +382 -0
- data/third_party/cares/cares/ares_process.c +1473 -0
- data/third_party/cares/cares/ares_query.c +186 -0
- data/third_party/cares/cares/ares_rules.h +125 -0
- data/third_party/cares/cares/ares_search.c +323 -0
- data/third_party/cares/cares/ares_send.c +137 -0
- data/third_party/cares/cares/ares_setup.h +217 -0
- data/third_party/cares/cares/ares_strcasecmp.c +66 -0
- data/third_party/cares/cares/ares_strcasecmp.h +30 -0
- data/third_party/cares/cares/ares_strdup.c +49 -0
- data/third_party/cares/cares/ares_strdup.h +24 -0
- data/third_party/cares/cares/ares_strerror.c +56 -0
- data/third_party/cares/cares/ares_strsplit.c +174 -0
- data/third_party/cares/cares/ares_strsplit.h +43 -0
- data/third_party/cares/cares/ares_timeout.c +88 -0
- data/third_party/cares/cares/ares_version.c +11 -0
- data/third_party/cares/cares/ares_version.h +24 -0
- data/third_party/cares/cares/ares_writev.c +79 -0
- data/third_party/cares/cares/bitncmp.c +59 -0
- data/third_party/cares/cares/bitncmp.h +26 -0
- data/third_party/cares/cares/config-win32.h +351 -0
- data/third_party/cares/cares/inet_net_pton.c +450 -0
- data/third_party/cares/cares/inet_ntop.c +207 -0
- data/third_party/cares/cares/setup_once.h +554 -0
- data/third_party/cares/cares/windows_port.c +22 -0
- data/third_party/cares/config_darwin/ares_config.h +428 -0
- data/third_party/cares/config_freebsd/ares_config.h +505 -0
- data/third_party/cares/config_linux/ares_config.h +461 -0
- data/third_party/cares/config_openbsd/ares_config.h +505 -0
- data/third_party/re2/re2/bitmap256.h +117 -0
- data/third_party/re2/re2/bitstate.cc +385 -0
- data/third_party/re2/re2/compile.cc +1261 -0
- data/third_party/re2/re2/dfa.cc +2118 -0
- data/third_party/re2/re2/filtered_re2.cc +137 -0
- data/third_party/re2/re2/filtered_re2.h +114 -0
- data/third_party/re2/re2/mimics_pcre.cc +197 -0
- data/third_party/re2/re2/nfa.cc +713 -0
- data/third_party/re2/re2/onepass.cc +623 -0
- data/third_party/re2/re2/parse.cc +2483 -0
- data/third_party/re2/re2/perl_groups.cc +119 -0
- data/third_party/re2/re2/pod_array.h +55 -0
- data/third_party/re2/re2/prefilter.cc +711 -0
- data/third_party/re2/re2/prefilter.h +108 -0
- data/third_party/re2/re2/prefilter_tree.cc +407 -0
- data/third_party/re2/re2/prefilter_tree.h +139 -0
- data/third_party/re2/re2/prog.cc +1166 -0
- data/third_party/re2/re2/prog.h +455 -0
- data/third_party/re2/re2/re2.cc +1331 -0
- data/third_party/re2/re2/re2.h +1017 -0
- data/third_party/re2/re2/regexp.cc +987 -0
- data/third_party/re2/re2/regexp.h +665 -0
- data/third_party/re2/re2/set.cc +176 -0
- data/third_party/re2/re2/set.h +85 -0
- data/third_party/re2/re2/simplify.cc +665 -0
- data/third_party/re2/re2/sparse_array.h +392 -0
- data/third_party/re2/re2/sparse_set.h +264 -0
- data/third_party/re2/re2/stringpiece.cc +65 -0
- data/third_party/re2/re2/stringpiece.h +210 -0
- data/third_party/re2/re2/tostring.cc +351 -0
- data/third_party/re2/re2/unicode_casefold.cc +582 -0
- data/third_party/re2/re2/unicode_casefold.h +78 -0
- data/third_party/re2/re2/unicode_groups.cc +6269 -0
- data/third_party/re2/re2/unicode_groups.h +67 -0
- data/third_party/re2/re2/walker-inl.h +246 -0
- data/third_party/re2/util/benchmark.h +156 -0
- data/third_party/re2/util/flags.h +26 -0
- data/third_party/re2/util/logging.h +109 -0
- data/third_party/re2/util/malloc_counter.h +19 -0
- data/third_party/re2/util/mix.h +41 -0
- data/third_party/re2/util/mutex.h +148 -0
- data/third_party/re2/util/pcre.cc +1025 -0
- data/third_party/re2/util/pcre.h +681 -0
- data/third_party/re2/util/rune.cc +260 -0
- data/third_party/re2/util/strutil.cc +149 -0
- data/third_party/re2/util/strutil.h +21 -0
- data/third_party/re2/util/test.h +50 -0
- data/third_party/re2/util/utf.h +44 -0
- data/third_party/re2/util/util.h +42 -0
- data/third_party/upb/upb/decode.c +771 -0
- data/third_party/upb/upb/decode.h +68 -0
- data/third_party/upb/upb/decode_fast.c +1053 -0
- data/third_party/upb/upb/decode_fast.h +153 -0
- data/third_party/upb/upb/decode_internal.h +193 -0
- data/third_party/upb/upb/def.c +2168 -0
- data/third_party/upb/upb/def.h +337 -0
- data/third_party/upb/upb/def.hpp +468 -0
- data/third_party/upb/upb/encode.c +511 -0
- data/third_party/upb/upb/encode.h +73 -0
- data/third_party/upb/upb/msg.c +397 -0
- data/third_party/upb/upb/msg.h +108 -0
- data/third_party/upb/upb/msg_internal.h +687 -0
- data/third_party/upb/upb/port_def.inc +253 -0
- data/third_party/upb/upb/port_undef.inc +61 -0
- data/third_party/upb/upb/reflection.c +400 -0
- data/third_party/upb/upb/reflection.h +196 -0
- data/third_party/upb/upb/reflection.hpp +37 -0
- data/third_party/upb/upb/table.c +842 -0
- data/third_party/upb/upb/table_internal.h +351 -0
- data/third_party/upb/upb/text_encode.c +449 -0
- data/third_party/upb/upb/text_encode.h +64 -0
- data/third_party/upb/upb/upb.c +315 -0
- data/third_party/upb/upb/upb.h +367 -0
- data/third_party/upb/upb/upb.hpp +112 -0
- data/third_party/upb/upb/upb_internal.h +58 -0
- data/third_party/xxhash/xxhash.h +5325 -0
- data/third_party/zlib/adler32.c +186 -0
- data/third_party/zlib/compress.c +86 -0
- data/third_party/zlib/crc32.c +442 -0
- data/third_party/zlib/crc32.h +441 -0
- data/third_party/zlib/deflate.c +2163 -0
- data/third_party/zlib/deflate.h +349 -0
- data/third_party/zlib/gzclose.c +25 -0
- data/third_party/zlib/gzguts.h +218 -0
- data/third_party/zlib/gzlib.c +637 -0
- data/third_party/zlib/gzread.c +654 -0
- data/third_party/zlib/gzwrite.c +665 -0
- data/third_party/zlib/infback.c +640 -0
- data/third_party/zlib/inffast.c +323 -0
- data/third_party/zlib/inffast.h +11 -0
- data/third_party/zlib/inffixed.h +94 -0
- data/third_party/zlib/inflate.c +1561 -0
- data/third_party/zlib/inflate.h +125 -0
- data/third_party/zlib/inftrees.c +304 -0
- data/third_party/zlib/inftrees.h +62 -0
- data/third_party/zlib/trees.c +1203 -0
- data/third_party/zlib/trees.h +128 -0
- data/third_party/zlib/uncompr.c +93 -0
- data/third_party/zlib/zconf.h +534 -0
- data/third_party/zlib/zlib.h +1912 -0
- data/third_party/zlib/zutil.c +325 -0
- data/third_party/zlib/zutil.h +271 -0
- metadata +2563 -0
@@ -0,0 +1,1903 @@
|
|
1
|
+
// Copyright 2018 The Abseil Authors.
|
2
|
+
//
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
// you may not use this file except in compliance with the License.
|
5
|
+
// You may obtain a copy of the License at
|
6
|
+
//
|
7
|
+
// https://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
//
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
// See the License for the specific language governing permissions and
|
13
|
+
// limitations under the License.
|
14
|
+
//
|
15
|
+
// An open-addressing
|
16
|
+
// hashtable with quadratic probing.
|
17
|
+
//
|
18
|
+
// This is a low level hashtable on top of which different interfaces can be
|
19
|
+
// implemented, like flat_hash_set, node_hash_set, string_hash_set, etc.
|
20
|
+
//
|
21
|
+
// The table interface is similar to that of std::unordered_set. Notable
|
22
|
+
// differences are that most member functions support heterogeneous keys when
|
23
|
+
// BOTH the hash and eq functions are marked as transparent. They do so by
|
24
|
+
// providing a typedef called `is_transparent`.
|
25
|
+
//
|
26
|
+
// When heterogeneous lookup is enabled, functions that take key_type act as if
|
27
|
+
// they have an overload set like:
|
28
|
+
//
|
29
|
+
// iterator find(const key_type& key);
|
30
|
+
// template <class K>
|
31
|
+
// iterator find(const K& key);
|
32
|
+
//
|
33
|
+
// size_type erase(const key_type& key);
|
34
|
+
// template <class K>
|
35
|
+
// size_type erase(const K& key);
|
36
|
+
//
|
37
|
+
// std::pair<iterator, iterator> equal_range(const key_type& key);
|
38
|
+
// template <class K>
|
39
|
+
// std::pair<iterator, iterator> equal_range(const K& key);
|
40
|
+
//
|
41
|
+
// When heterogeneous lookup is disabled, only the explicit `key_type` overloads
|
42
|
+
// exist.
|
43
|
+
//
|
44
|
+
// find() also supports passing the hash explicitly:
|
45
|
+
//
|
46
|
+
// iterator find(const key_type& key, size_t hash);
|
47
|
+
// template <class U>
|
48
|
+
// iterator find(const U& key, size_t hash);
|
49
|
+
//
|
50
|
+
// In addition the pointer to element and iterator stability guarantees are
|
51
|
+
// weaker: all iterators and pointers are invalidated after a new element is
|
52
|
+
// inserted.
|
53
|
+
//
|
54
|
+
// IMPLEMENTATION DETAILS
|
55
|
+
//
|
56
|
+
// The table stores elements inline in a slot array. In addition to the slot
|
57
|
+
// array the table maintains some control state per slot. The extra state is one
|
58
|
+
// byte per slot and stores empty or deleted marks, or alternatively 7 bits from
|
59
|
+
// the hash of an occupied slot. The table is split into logical groups of
|
60
|
+
// slots, like so:
|
61
|
+
//
|
62
|
+
// Group 1 Group 2 Group 3
|
63
|
+
// +---------------+---------------+---------------+
|
64
|
+
// | | | | | | | | | | | | | | | | | | | | | | | | |
|
65
|
+
// +---------------+---------------+---------------+
|
66
|
+
//
|
67
|
+
// On lookup the hash is split into two parts:
|
68
|
+
// - H2: 7 bits (those stored in the control bytes)
|
69
|
+
// - H1: the rest of the bits
|
70
|
+
// The groups are probed using H1. For each group the slots are matched to H2 in
|
71
|
+
// parallel. Because H2 is 7 bits (128 states) and the number of slots per group
|
72
|
+
// is low (8 or 16) in almost all cases a match in H2 is also a lookup hit.
|
73
|
+
//
|
74
|
+
// On insert, once the right group is found (as in lookup), its slots are
|
75
|
+
// filled in order.
|
76
|
+
//
|
77
|
+
// On erase a slot is cleared. In case the group did not have any empty slots
|
78
|
+
// before the erase, the erased slot is marked as deleted.
|
79
|
+
//
|
80
|
+
// Groups without empty slots (but maybe with deleted slots) extend the probe
|
81
|
+
// sequence. The probing algorithm is quadratic. Given N the number of groups,
|
82
|
+
// the probing function for the i'th probe is:
|
83
|
+
//
|
84
|
+
// P(0) = H1 % N
|
85
|
+
//
|
86
|
+
// P(i) = (P(i - 1) + i) % N
|
87
|
+
//
|
88
|
+
// This probing function guarantees that after N probes, all the groups of the
|
89
|
+
// table will be probed exactly once.
|
90
|
+
|
91
|
+
#ifndef ABSL_CONTAINER_INTERNAL_RAW_HASH_SET_H_
|
92
|
+
#define ABSL_CONTAINER_INTERNAL_RAW_HASH_SET_H_
|
93
|
+
|
94
|
+
#include <algorithm>
|
95
|
+
#include <cmath>
|
96
|
+
#include <cstdint>
|
97
|
+
#include <cstring>
|
98
|
+
#include <iterator>
|
99
|
+
#include <limits>
|
100
|
+
#include <memory>
|
101
|
+
#include <tuple>
|
102
|
+
#include <type_traits>
|
103
|
+
#include <utility>
|
104
|
+
|
105
|
+
#include "absl/base/internal/endian.h"
|
106
|
+
#include "absl/base/optimization.h"
|
107
|
+
#include "absl/base/port.h"
|
108
|
+
#include "absl/container/internal/common.h"
|
109
|
+
#include "absl/container/internal/compressed_tuple.h"
|
110
|
+
#include "absl/container/internal/container_memory.h"
|
111
|
+
#include "absl/container/internal/hash_policy_traits.h"
|
112
|
+
#include "absl/container/internal/hashtable_debug_hooks.h"
|
113
|
+
#include "absl/container/internal/hashtablez_sampler.h"
|
114
|
+
#include "absl/container/internal/have_sse.h"
|
115
|
+
#include "absl/container/internal/layout.h"
|
116
|
+
#include "absl/memory/memory.h"
|
117
|
+
#include "absl/meta/type_traits.h"
|
118
|
+
#include "absl/numeric/bits.h"
|
119
|
+
#include "absl/utility/utility.h"
|
120
|
+
|
121
|
+
namespace absl {
|
122
|
+
ABSL_NAMESPACE_BEGIN
|
123
|
+
namespace container_internal {
|
124
|
+
|
125
|
+
template <typename AllocType>
|
126
|
+
void SwapAlloc(AllocType& lhs, AllocType& rhs,
|
127
|
+
std::true_type /* propagate_on_container_swap */) {
|
128
|
+
using std::swap;
|
129
|
+
swap(lhs, rhs);
|
130
|
+
}
|
131
|
+
template <typename AllocType>
|
132
|
+
void SwapAlloc(AllocType& /*lhs*/, AllocType& /*rhs*/,
|
133
|
+
std::false_type /* propagate_on_container_swap */) {}
|
134
|
+
|
135
|
+
template <size_t Width>
|
136
|
+
class probe_seq {
|
137
|
+
public:
|
138
|
+
probe_seq(size_t hash, size_t mask) {
|
139
|
+
assert(((mask + 1) & mask) == 0 && "not a mask");
|
140
|
+
mask_ = mask;
|
141
|
+
offset_ = hash & mask_;
|
142
|
+
}
|
143
|
+
size_t offset() const { return offset_; }
|
144
|
+
size_t offset(size_t i) const { return (offset_ + i) & mask_; }
|
145
|
+
|
146
|
+
void next() {
|
147
|
+
index_ += Width;
|
148
|
+
offset_ += index_;
|
149
|
+
offset_ &= mask_;
|
150
|
+
}
|
151
|
+
// 0-based probe index. The i-th probe in the probe sequence.
|
152
|
+
size_t index() const { return index_; }
|
153
|
+
|
154
|
+
private:
|
155
|
+
size_t mask_;
|
156
|
+
size_t offset_;
|
157
|
+
size_t index_ = 0;
|
158
|
+
};
|
159
|
+
|
160
|
+
template <class ContainerKey, class Hash, class Eq>
|
161
|
+
struct RequireUsableKey {
|
162
|
+
template <class PassedKey, class... Args>
|
163
|
+
std::pair<
|
164
|
+
decltype(std::declval<const Hash&>()(std::declval<const PassedKey&>())),
|
165
|
+
decltype(std::declval<const Eq&>()(std::declval<const ContainerKey&>(),
|
166
|
+
std::declval<const PassedKey&>()))>*
|
167
|
+
operator()(const PassedKey&, const Args&...) const;
|
168
|
+
};
|
169
|
+
|
170
|
+
template <class E, class Policy, class Hash, class Eq, class... Ts>
|
171
|
+
struct IsDecomposable : std::false_type {};
|
172
|
+
|
173
|
+
template <class Policy, class Hash, class Eq, class... Ts>
|
174
|
+
struct IsDecomposable<
|
175
|
+
absl::void_t<decltype(
|
176
|
+
Policy::apply(RequireUsableKey<typename Policy::key_type, Hash, Eq>(),
|
177
|
+
std::declval<Ts>()...))>,
|
178
|
+
Policy, Hash, Eq, Ts...> : std::true_type {};
|
179
|
+
|
180
|
+
// TODO(alkis): Switch to std::is_nothrow_swappable when gcc/clang supports it.
|
181
|
+
template <class T>
|
182
|
+
constexpr bool IsNoThrowSwappable(std::true_type = {} /* is_swappable */) {
|
183
|
+
using std::swap;
|
184
|
+
return noexcept(swap(std::declval<T&>(), std::declval<T&>()));
|
185
|
+
}
|
186
|
+
template <class T>
|
187
|
+
constexpr bool IsNoThrowSwappable(std::false_type /* is_swappable */) {
|
188
|
+
return false;
|
189
|
+
}
|
190
|
+
|
191
|
+
template <typename T>
|
192
|
+
uint32_t TrailingZeros(T x) {
|
193
|
+
ABSL_INTERNAL_ASSUME(x != 0);
|
194
|
+
return countr_zero(x);
|
195
|
+
}
|
196
|
+
|
197
|
+
// An abstraction over a bitmask. It provides an easy way to iterate through the
|
198
|
+
// indexes of the set bits of a bitmask. When Shift=0 (platforms with SSE),
|
199
|
+
// this is a true bitmask. On non-SSE, platforms the arithematic used to
|
200
|
+
// emulate the SSE behavior works in bytes (Shift=3) and leaves each bytes as
|
201
|
+
// either 0x00 or 0x80.
|
202
|
+
//
|
203
|
+
// For example:
|
204
|
+
// for (int i : BitMask<uint32_t, 16>(0x5)) -> yields 0, 2
|
205
|
+
// for (int i : BitMask<uint64_t, 8, 3>(0x0000000080800000)) -> yields 2, 3
|
206
|
+
template <class T, int SignificantBits, int Shift = 0>
|
207
|
+
class BitMask {
|
208
|
+
static_assert(std::is_unsigned<T>::value, "");
|
209
|
+
static_assert(Shift == 0 || Shift == 3, "");
|
210
|
+
|
211
|
+
public:
|
212
|
+
// These are useful for unit tests (gunit).
|
213
|
+
using value_type = int;
|
214
|
+
using iterator = BitMask;
|
215
|
+
using const_iterator = BitMask;
|
216
|
+
|
217
|
+
explicit BitMask(T mask) : mask_(mask) {}
|
218
|
+
BitMask& operator++() {
|
219
|
+
mask_ &= (mask_ - 1);
|
220
|
+
return *this;
|
221
|
+
}
|
222
|
+
explicit operator bool() const { return mask_ != 0; }
|
223
|
+
int operator*() const { return LowestBitSet(); }
|
224
|
+
uint32_t LowestBitSet() const {
|
225
|
+
return container_internal::TrailingZeros(mask_) >> Shift;
|
226
|
+
}
|
227
|
+
uint32_t HighestBitSet() const {
|
228
|
+
return static_cast<uint32_t>((bit_width(mask_) - 1) >> Shift);
|
229
|
+
}
|
230
|
+
|
231
|
+
BitMask begin() const { return *this; }
|
232
|
+
BitMask end() const { return BitMask(0); }
|
233
|
+
|
234
|
+
uint32_t TrailingZeros() const {
|
235
|
+
return container_internal::TrailingZeros(mask_) >> Shift;
|
236
|
+
}
|
237
|
+
|
238
|
+
uint32_t LeadingZeros() const {
|
239
|
+
constexpr int total_significant_bits = SignificantBits << Shift;
|
240
|
+
constexpr int extra_bits = sizeof(T) * 8 - total_significant_bits;
|
241
|
+
return countl_zero(mask_ << extra_bits) >> Shift;
|
242
|
+
}
|
243
|
+
|
244
|
+
private:
|
245
|
+
friend bool operator==(const BitMask& a, const BitMask& b) {
|
246
|
+
return a.mask_ == b.mask_;
|
247
|
+
}
|
248
|
+
friend bool operator!=(const BitMask& a, const BitMask& b) {
|
249
|
+
return a.mask_ != b.mask_;
|
250
|
+
}
|
251
|
+
|
252
|
+
T mask_;
|
253
|
+
};
|
254
|
+
|
255
|
+
using ctrl_t = signed char;
|
256
|
+
using h2_t = uint8_t;
|
257
|
+
|
258
|
+
// The values here are selected for maximum performance. See the static asserts
|
259
|
+
// below for details.
|
260
|
+
enum Ctrl : ctrl_t {
|
261
|
+
kEmpty = -128, // 0b10000000
|
262
|
+
kDeleted = -2, // 0b11111110
|
263
|
+
kSentinel = -1, // 0b11111111
|
264
|
+
};
|
265
|
+
static_assert(
|
266
|
+
kEmpty & kDeleted & kSentinel & 0x80,
|
267
|
+
"Special markers need to have the MSB to make checking for them efficient");
|
268
|
+
static_assert(kEmpty < kSentinel && kDeleted < kSentinel,
|
269
|
+
"kEmpty and kDeleted must be smaller than kSentinel to make the "
|
270
|
+
"SIMD test of IsEmptyOrDeleted() efficient");
|
271
|
+
static_assert(kSentinel == -1,
|
272
|
+
"kSentinel must be -1 to elide loading it from memory into SIMD "
|
273
|
+
"registers (pcmpeqd xmm, xmm)");
|
274
|
+
static_assert(kEmpty == -128,
|
275
|
+
"kEmpty must be -128 to make the SIMD check for its "
|
276
|
+
"existence efficient (psignb xmm, xmm)");
|
277
|
+
static_assert(~kEmpty & ~kDeleted & kSentinel & 0x7F,
|
278
|
+
"kEmpty and kDeleted must share an unset bit that is not shared "
|
279
|
+
"by kSentinel to make the scalar test for MatchEmptyOrDeleted() "
|
280
|
+
"efficient");
|
281
|
+
static_assert(kDeleted == -2,
|
282
|
+
"kDeleted must be -2 to make the implementation of "
|
283
|
+
"ConvertSpecialToEmptyAndFullToDeleted efficient");
|
284
|
+
|
285
|
+
// A single block of empty control bytes for tables without any slots allocated.
|
286
|
+
// This enables removing a branch in the hot path of find().
|
287
|
+
inline ctrl_t* EmptyGroup() {
|
288
|
+
alignas(16) static constexpr ctrl_t empty_group[] = {
|
289
|
+
kSentinel, kEmpty, kEmpty, kEmpty, kEmpty, kEmpty, kEmpty, kEmpty,
|
290
|
+
kEmpty, kEmpty, kEmpty, kEmpty, kEmpty, kEmpty, kEmpty, kEmpty};
|
291
|
+
return const_cast<ctrl_t*>(empty_group);
|
292
|
+
}
|
293
|
+
|
294
|
+
// Mixes a randomly generated per-process seed with `hash` and `ctrl` to
|
295
|
+
// randomize insertion order within groups.
|
296
|
+
bool ShouldInsertBackwards(size_t hash, ctrl_t* ctrl);
|
297
|
+
|
298
|
+
// Returns a hash seed.
|
299
|
+
//
|
300
|
+
// The seed consists of the ctrl_ pointer, which adds enough entropy to ensure
|
301
|
+
// non-determinism of iteration order in most cases.
|
302
|
+
inline size_t HashSeed(const ctrl_t* ctrl) {
|
303
|
+
// The low bits of the pointer have little or no entropy because of
|
304
|
+
// alignment. We shift the pointer to try to use higher entropy bits. A
|
305
|
+
// good number seems to be 12 bits, because that aligns with page size.
|
306
|
+
return reinterpret_cast<uintptr_t>(ctrl) >> 12;
|
307
|
+
}
|
308
|
+
|
309
|
+
inline size_t H1(size_t hash, const ctrl_t* ctrl) {
|
310
|
+
return (hash >> 7) ^ HashSeed(ctrl);
|
311
|
+
}
|
312
|
+
inline ctrl_t H2(size_t hash) { return hash & 0x7F; }
|
313
|
+
|
314
|
+
inline bool IsEmpty(ctrl_t c) { return c == kEmpty; }
|
315
|
+
inline bool IsFull(ctrl_t c) { return c >= 0; }
|
316
|
+
inline bool IsDeleted(ctrl_t c) { return c == kDeleted; }
|
317
|
+
inline bool IsEmptyOrDeleted(ctrl_t c) { return c < kSentinel; }
|
318
|
+
|
319
|
+
#if ABSL_INTERNAL_RAW_HASH_SET_HAVE_SSE2
|
320
|
+
|
321
|
+
// https://github.com/abseil/abseil-cpp/issues/209
|
322
|
+
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87853
|
323
|
+
// _mm_cmpgt_epi8 is broken under GCC with -funsigned-char
|
324
|
+
// Work around this by using the portable implementation of Group
|
325
|
+
// when using -funsigned-char under GCC.
|
326
|
+
inline __m128i _mm_cmpgt_epi8_fixed(__m128i a, __m128i b) {
|
327
|
+
#if defined(__GNUC__) && !defined(__clang__)
|
328
|
+
if (std::is_unsigned<char>::value) {
|
329
|
+
const __m128i mask = _mm_set1_epi8(0x80);
|
330
|
+
const __m128i diff = _mm_subs_epi8(b, a);
|
331
|
+
return _mm_cmpeq_epi8(_mm_and_si128(diff, mask), mask);
|
332
|
+
}
|
333
|
+
#endif
|
334
|
+
return _mm_cmpgt_epi8(a, b);
|
335
|
+
}
|
336
|
+
|
337
|
+
struct GroupSse2Impl {
|
338
|
+
static constexpr size_t kWidth = 16; // the number of slots per group
|
339
|
+
|
340
|
+
explicit GroupSse2Impl(const ctrl_t* pos) {
|
341
|
+
ctrl = _mm_loadu_si128(reinterpret_cast<const __m128i*>(pos));
|
342
|
+
}
|
343
|
+
|
344
|
+
// Returns a bitmask representing the positions of slots that match hash.
|
345
|
+
BitMask<uint32_t, kWidth> Match(h2_t hash) const {
|
346
|
+
auto match = _mm_set1_epi8(hash);
|
347
|
+
return BitMask<uint32_t, kWidth>(
|
348
|
+
_mm_movemask_epi8(_mm_cmpeq_epi8(match, ctrl)));
|
349
|
+
}
|
350
|
+
|
351
|
+
// Returns a bitmask representing the positions of empty slots.
|
352
|
+
BitMask<uint32_t, kWidth> MatchEmpty() const {
|
353
|
+
#if ABSL_INTERNAL_RAW_HASH_SET_HAVE_SSSE3
|
354
|
+
// This only works because kEmpty is -128.
|
355
|
+
return BitMask<uint32_t, kWidth>(
|
356
|
+
_mm_movemask_epi8(_mm_sign_epi8(ctrl, ctrl)));
|
357
|
+
#else
|
358
|
+
return Match(static_cast<h2_t>(kEmpty));
|
359
|
+
#endif
|
360
|
+
}
|
361
|
+
|
362
|
+
// Returns a bitmask representing the positions of empty or deleted slots.
|
363
|
+
BitMask<uint32_t, kWidth> MatchEmptyOrDeleted() const {
|
364
|
+
auto special = _mm_set1_epi8(kSentinel);
|
365
|
+
return BitMask<uint32_t, kWidth>(
|
366
|
+
_mm_movemask_epi8(_mm_cmpgt_epi8_fixed(special, ctrl)));
|
367
|
+
}
|
368
|
+
|
369
|
+
// Returns the number of trailing empty or deleted elements in the group.
|
370
|
+
uint32_t CountLeadingEmptyOrDeleted() const {
|
371
|
+
auto special = _mm_set1_epi8(kSentinel);
|
372
|
+
return TrailingZeros(static_cast<uint32_t>(
|
373
|
+
_mm_movemask_epi8(_mm_cmpgt_epi8_fixed(special, ctrl)) + 1));
|
374
|
+
}
|
375
|
+
|
376
|
+
void ConvertSpecialToEmptyAndFullToDeleted(ctrl_t* dst) const {
|
377
|
+
auto msbs = _mm_set1_epi8(static_cast<char>(-128));
|
378
|
+
auto x126 = _mm_set1_epi8(126);
|
379
|
+
#if ABSL_INTERNAL_RAW_HASH_SET_HAVE_SSSE3
|
380
|
+
auto res = _mm_or_si128(_mm_shuffle_epi8(x126, ctrl), msbs);
|
381
|
+
#else
|
382
|
+
auto zero = _mm_setzero_si128();
|
383
|
+
auto special_mask = _mm_cmpgt_epi8_fixed(zero, ctrl);
|
384
|
+
auto res = _mm_or_si128(msbs, _mm_andnot_si128(special_mask, x126));
|
385
|
+
#endif
|
386
|
+
_mm_storeu_si128(reinterpret_cast<__m128i*>(dst), res);
|
387
|
+
}
|
388
|
+
|
389
|
+
__m128i ctrl;
|
390
|
+
};
|
391
|
+
#endif // ABSL_INTERNAL_RAW_HASH_SET_HAVE_SSE2
|
392
|
+
|
393
|
+
struct GroupPortableImpl {
|
394
|
+
static constexpr size_t kWidth = 8;
|
395
|
+
|
396
|
+
explicit GroupPortableImpl(const ctrl_t* pos)
|
397
|
+
: ctrl(little_endian::Load64(pos)) {}
|
398
|
+
|
399
|
+
BitMask<uint64_t, kWidth, 3> Match(h2_t hash) const {
|
400
|
+
// For the technique, see:
|
401
|
+
// http://graphics.stanford.edu/~seander/bithacks.html##ValueInWord
|
402
|
+
// (Determine if a word has a byte equal to n).
|
403
|
+
//
|
404
|
+
// Caveat: there are false positives but:
|
405
|
+
// - they only occur if there is a real match
|
406
|
+
// - they never occur on kEmpty, kDeleted, kSentinel
|
407
|
+
// - they will be handled gracefully by subsequent checks in code
|
408
|
+
//
|
409
|
+
// Example:
|
410
|
+
// v = 0x1716151413121110
|
411
|
+
// hash = 0x12
|
412
|
+
// retval = (v - lsbs) & ~v & msbs = 0x0000000080800000
|
413
|
+
constexpr uint64_t msbs = 0x8080808080808080ULL;
|
414
|
+
constexpr uint64_t lsbs = 0x0101010101010101ULL;
|
415
|
+
auto x = ctrl ^ (lsbs * hash);
|
416
|
+
return BitMask<uint64_t, kWidth, 3>((x - lsbs) & ~x & msbs);
|
417
|
+
}
|
418
|
+
|
419
|
+
BitMask<uint64_t, kWidth, 3> MatchEmpty() const {
|
420
|
+
constexpr uint64_t msbs = 0x8080808080808080ULL;
|
421
|
+
return BitMask<uint64_t, kWidth, 3>((ctrl & (~ctrl << 6)) & msbs);
|
422
|
+
}
|
423
|
+
|
424
|
+
BitMask<uint64_t, kWidth, 3> MatchEmptyOrDeleted() const {
|
425
|
+
constexpr uint64_t msbs = 0x8080808080808080ULL;
|
426
|
+
return BitMask<uint64_t, kWidth, 3>((ctrl & (~ctrl << 7)) & msbs);
|
427
|
+
}
|
428
|
+
|
429
|
+
uint32_t CountLeadingEmptyOrDeleted() const {
|
430
|
+
constexpr uint64_t gaps = 0x00FEFEFEFEFEFEFEULL;
|
431
|
+
return (TrailingZeros(((~ctrl & (ctrl >> 7)) | gaps) + 1) + 7) >> 3;
|
432
|
+
}
|
433
|
+
|
434
|
+
void ConvertSpecialToEmptyAndFullToDeleted(ctrl_t* dst) const {
|
435
|
+
constexpr uint64_t msbs = 0x8080808080808080ULL;
|
436
|
+
constexpr uint64_t lsbs = 0x0101010101010101ULL;
|
437
|
+
auto x = ctrl & msbs;
|
438
|
+
auto res = (~x + (x >> 7)) & ~lsbs;
|
439
|
+
little_endian::Store64(dst, res);
|
440
|
+
}
|
441
|
+
|
442
|
+
uint64_t ctrl;
|
443
|
+
};
|
444
|
+
|
445
|
+
#if ABSL_INTERNAL_RAW_HASH_SET_HAVE_SSE2
|
446
|
+
using Group = GroupSse2Impl;
|
447
|
+
#else
|
448
|
+
using Group = GroupPortableImpl;
|
449
|
+
#endif
|
450
|
+
|
451
|
+
template <class Policy, class Hash, class Eq, class Alloc>
|
452
|
+
class raw_hash_set;
|
453
|
+
|
454
|
+
inline bool IsValidCapacity(size_t n) { return ((n + 1) & n) == 0 && n > 0; }
|
455
|
+
|
456
|
+
// PRECONDITION:
|
457
|
+
// IsValidCapacity(capacity)
|
458
|
+
// ctrl[capacity] == kSentinel
|
459
|
+
// ctrl[i] != kSentinel for all i < capacity
|
460
|
+
// Applies mapping for every byte in ctrl:
|
461
|
+
// DELETED -> EMPTY
|
462
|
+
// EMPTY -> EMPTY
|
463
|
+
// FULL -> DELETED
|
464
|
+
void ConvertDeletedToEmptyAndFullToDeleted(ctrl_t* ctrl, size_t capacity);
|
465
|
+
|
466
|
+
// Rounds up the capacity to the next power of 2 minus 1, with a minimum of 1.
|
467
|
+
inline size_t NormalizeCapacity(size_t n) {
|
468
|
+
return n ? ~size_t{} >> countl_zero(n) : 1;
|
469
|
+
}
|
470
|
+
|
471
|
+
// General notes on capacity/growth methods below:
|
472
|
+
// - We use 7/8th as maximum load factor. For 16-wide groups, that gives an
|
473
|
+
// average of two empty slots per group.
|
474
|
+
// - For (capacity+1) >= Group::kWidth, growth is 7/8*capacity.
|
475
|
+
// - For (capacity+1) < Group::kWidth, growth == capacity. In this case, we
|
476
|
+
// never need to probe (the whole table fits in one group) so we don't need a
|
477
|
+
// load factor less than 1.
|
478
|
+
|
479
|
+
// Given `capacity` of the table, returns the size (i.e. number of full slots)
|
480
|
+
// at which we should grow the capacity.
|
481
|
+
inline size_t CapacityToGrowth(size_t capacity) {
|
482
|
+
assert(IsValidCapacity(capacity));
|
483
|
+
// `capacity*7/8`
|
484
|
+
if (Group::kWidth == 8 && capacity == 7) {
|
485
|
+
// x-x/8 does not work when x==7.
|
486
|
+
return 6;
|
487
|
+
}
|
488
|
+
return capacity - capacity / 8;
|
489
|
+
}
|
490
|
+
// From desired "growth" to a lowerbound of the necessary capacity.
|
491
|
+
// Might not be a valid one and requires NormalizeCapacity().
|
492
|
+
inline size_t GrowthToLowerboundCapacity(size_t growth) {
|
493
|
+
// `growth*8/7`
|
494
|
+
if (Group::kWidth == 8 && growth == 7) {
|
495
|
+
// x+(x-1)/7 does not work when x==7.
|
496
|
+
return 8;
|
497
|
+
}
|
498
|
+
return growth + static_cast<size_t>((static_cast<int64_t>(growth) - 1) / 7);
|
499
|
+
}
|
500
|
+
|
501
|
+
inline void AssertIsFull(ctrl_t* ctrl) {
|
502
|
+
ABSL_HARDENING_ASSERT((ctrl != nullptr && IsFull(*ctrl)) &&
|
503
|
+
"Invalid operation on iterator. The element might have "
|
504
|
+
"been erased, or the table might have rehashed.");
|
505
|
+
}
|
506
|
+
|
507
|
+
inline void AssertIsValid(ctrl_t* ctrl) {
|
508
|
+
ABSL_HARDENING_ASSERT((ctrl == nullptr || IsFull(*ctrl)) &&
|
509
|
+
"Invalid operation on iterator. The element might have "
|
510
|
+
"been erased, or the table might have rehashed.");
|
511
|
+
}
|
512
|
+
|
513
|
+
struct FindInfo {
|
514
|
+
size_t offset;
|
515
|
+
size_t probe_length;
|
516
|
+
};
|
517
|
+
|
518
|
+
// The representation of the object has two modes:
|
519
|
+
// - small: For capacities < kWidth-1
|
520
|
+
// - large: For the rest.
|
521
|
+
//
|
522
|
+
// Differences:
|
523
|
+
// - In small mode we are able to use the whole capacity. The extra control
|
524
|
+
// bytes give us at least one "empty" control byte to stop the iteration.
|
525
|
+
// This is important to make 1 a valid capacity.
|
526
|
+
//
|
527
|
+
// - In small mode only the first `capacity()` control bytes after the
|
528
|
+
// sentinel are valid. The rest contain dummy kEmpty values that do not
|
529
|
+
// represent a real slot. This is important to take into account on
|
530
|
+
// find_first_non_full(), where we never try ShouldInsertBackwards() for
|
531
|
+
// small tables.
|
532
|
+
inline bool is_small(size_t capacity) { return capacity < Group::kWidth - 1; }
|
533
|
+
|
534
|
+
inline probe_seq<Group::kWidth> probe(ctrl_t* ctrl, size_t hash,
|
535
|
+
size_t capacity) {
|
536
|
+
return probe_seq<Group::kWidth>(H1(hash, ctrl), capacity);
|
537
|
+
}
|
538
|
+
|
539
|
+
// Probes the raw_hash_set with the probe sequence for hash and returns the
|
540
|
+
// pointer to the first empty or deleted slot.
|
541
|
+
// NOTE: this function must work with tables having both kEmpty and kDelete
|
542
|
+
// in one group. Such tables appears during drop_deletes_without_resize.
|
543
|
+
//
|
544
|
+
// This function is very useful when insertions happen and:
|
545
|
+
// - the input is already a set
|
546
|
+
// - there are enough slots
|
547
|
+
// - the element with the hash is not in the table
|
548
|
+
inline FindInfo find_first_non_full(ctrl_t* ctrl, size_t hash,
|
549
|
+
size_t capacity) {
|
550
|
+
auto seq = probe(ctrl, hash, capacity);
|
551
|
+
while (true) {
|
552
|
+
Group g{ctrl + seq.offset()};
|
553
|
+
auto mask = g.MatchEmptyOrDeleted();
|
554
|
+
if (mask) {
|
555
|
+
#if !defined(NDEBUG)
|
556
|
+
// We want to add entropy even when ASLR is not enabled.
|
557
|
+
// In debug build we will randomly insert in either the front or back of
|
558
|
+
// the group.
|
559
|
+
// TODO(kfm,sbenza): revisit after we do unconditional mixing
|
560
|
+
if (!is_small(capacity) && ShouldInsertBackwards(hash, ctrl)) {
|
561
|
+
return {seq.offset(mask.HighestBitSet()), seq.index()};
|
562
|
+
}
|
563
|
+
#endif
|
564
|
+
return {seq.offset(mask.LowestBitSet()), seq.index()};
|
565
|
+
}
|
566
|
+
seq.next();
|
567
|
+
assert(seq.index() < capacity && "full table!");
|
568
|
+
}
|
569
|
+
}
|
570
|
+
|
571
|
+
// Policy: a policy defines how to perform different operations on
|
572
|
+
// the slots of the hashtable (see hash_policy_traits.h for the full interface
|
573
|
+
// of policy).
|
574
|
+
//
|
575
|
+
// Hash: a (possibly polymorphic) functor that hashes keys of the hashtable. The
|
576
|
+
// functor should accept a key and return size_t as hash. For best performance
|
577
|
+
// it is important that the hash function provides high entropy across all bits
|
578
|
+
// of the hash.
|
579
|
+
//
|
580
|
+
// Eq: a (possibly polymorphic) functor that compares two keys for equality. It
|
581
|
+
// should accept two (of possibly different type) keys and return a bool: true
|
582
|
+
// if they are equal, false if they are not. If two keys compare equal, then
|
583
|
+
// their hash values as defined by Hash MUST be equal.
|
584
|
+
//
|
585
|
+
// Allocator: an Allocator
|
586
|
+
// [https://en.cppreference.com/w/cpp/named_req/Allocator] with which
|
587
|
+
// the storage of the hashtable will be allocated and the elements will be
|
588
|
+
// constructed and destroyed.
|
589
|
+
template <class Policy, class Hash, class Eq, class Alloc>
|
590
|
+
class raw_hash_set {
|
591
|
+
using PolicyTraits = hash_policy_traits<Policy>;
|
592
|
+
using KeyArgImpl =
|
593
|
+
KeyArg<IsTransparent<Eq>::value && IsTransparent<Hash>::value>;
|
594
|
+
|
595
|
+
public:
|
596
|
+
using init_type = typename PolicyTraits::init_type;
|
597
|
+
using key_type = typename PolicyTraits::key_type;
|
598
|
+
// TODO(sbenza): Hide slot_type as it is an implementation detail. Needs user
|
599
|
+
// code fixes!
|
600
|
+
using slot_type = typename PolicyTraits::slot_type;
|
601
|
+
using allocator_type = Alloc;
|
602
|
+
using size_type = size_t;
|
603
|
+
using difference_type = ptrdiff_t;
|
604
|
+
using hasher = Hash;
|
605
|
+
using key_equal = Eq;
|
606
|
+
using policy_type = Policy;
|
607
|
+
using value_type = typename PolicyTraits::value_type;
|
608
|
+
using reference = value_type&;
|
609
|
+
using const_reference = const value_type&;
|
610
|
+
using pointer = typename absl::allocator_traits<
|
611
|
+
allocator_type>::template rebind_traits<value_type>::pointer;
|
612
|
+
using const_pointer = typename absl::allocator_traits<
|
613
|
+
allocator_type>::template rebind_traits<value_type>::const_pointer;
|
614
|
+
|
615
|
+
// Alias used for heterogeneous lookup functions.
|
616
|
+
// `key_arg<K>` evaluates to `K` when the functors are transparent and to
|
617
|
+
// `key_type` otherwise. It permits template argument deduction on `K` for the
|
618
|
+
// transparent case.
|
619
|
+
template <class K>
|
620
|
+
using key_arg = typename KeyArgImpl::template type<K, key_type>;
|
621
|
+
|
622
|
+
private:
|
623
|
+
// Give an early error when key_type is not hashable/eq.
|
624
|
+
auto KeyTypeCanBeHashed(const Hash& h, const key_type& k) -> decltype(h(k));
|
625
|
+
auto KeyTypeCanBeEq(const Eq& eq, const key_type& k) -> decltype(eq(k, k));
|
626
|
+
|
627
|
+
using Layout = absl::container_internal::Layout<ctrl_t, slot_type>;
|
628
|
+
|
629
|
+
static Layout MakeLayout(size_t capacity) {
|
630
|
+
assert(IsValidCapacity(capacity));
|
631
|
+
return Layout(capacity + Group::kWidth + 1, capacity);
|
632
|
+
}
|
633
|
+
|
634
|
+
using AllocTraits = absl::allocator_traits<allocator_type>;
|
635
|
+
using SlotAlloc = typename absl::allocator_traits<
|
636
|
+
allocator_type>::template rebind_alloc<slot_type>;
|
637
|
+
using SlotAllocTraits = typename absl::allocator_traits<
|
638
|
+
allocator_type>::template rebind_traits<slot_type>;
|
639
|
+
|
640
|
+
static_assert(std::is_lvalue_reference<reference>::value,
|
641
|
+
"Policy::element() must return a reference");
|
642
|
+
|
643
|
+
template <typename T>
|
644
|
+
struct SameAsElementReference
|
645
|
+
: std::is_same<typename std::remove_cv<
|
646
|
+
typename std::remove_reference<reference>::type>::type,
|
647
|
+
typename std::remove_cv<
|
648
|
+
typename std::remove_reference<T>::type>::type> {};
|
649
|
+
|
650
|
+
// An enabler for insert(T&&): T must be convertible to init_type or be the
|
651
|
+
// same as [cv] value_type [ref].
|
652
|
+
// Note: we separate SameAsElementReference into its own type to avoid using
|
653
|
+
// reference unless we need to. MSVC doesn't seem to like it in some
|
654
|
+
// cases.
|
655
|
+
template <class T>
|
656
|
+
using RequiresInsertable = typename std::enable_if<
|
657
|
+
absl::disjunction<std::is_convertible<T, init_type>,
|
658
|
+
SameAsElementReference<T>>::value,
|
659
|
+
int>::type;
|
660
|
+
|
661
|
+
// RequiresNotInit is a workaround for gcc prior to 7.1.
|
662
|
+
// See https://godbolt.org/g/Y4xsUh.
|
663
|
+
template <class T>
|
664
|
+
using RequiresNotInit =
|
665
|
+
typename std::enable_if<!std::is_same<T, init_type>::value, int>::type;
|
666
|
+
|
667
|
+
template <class... Ts>
|
668
|
+
using IsDecomposable = IsDecomposable<void, PolicyTraits, Hash, Eq, Ts...>;
|
669
|
+
|
670
|
+
public:
|
671
|
+
static_assert(std::is_same<pointer, value_type*>::value,
|
672
|
+
"Allocators with custom pointer types are not supported");
|
673
|
+
static_assert(std::is_same<const_pointer, const value_type*>::value,
|
674
|
+
"Allocators with custom pointer types are not supported");
|
675
|
+
|
676
|
+
class iterator {
|
677
|
+
friend class raw_hash_set;
|
678
|
+
|
679
|
+
public:
|
680
|
+
using iterator_category = std::forward_iterator_tag;
|
681
|
+
using value_type = typename raw_hash_set::value_type;
|
682
|
+
using reference =
|
683
|
+
absl::conditional_t<PolicyTraits::constant_iterators::value,
|
684
|
+
const value_type&, value_type&>;
|
685
|
+
using pointer = absl::remove_reference_t<reference>*;
|
686
|
+
using difference_type = typename raw_hash_set::difference_type;
|
687
|
+
|
688
|
+
iterator() {}
|
689
|
+
|
690
|
+
// PRECONDITION: not an end() iterator.
|
691
|
+
reference operator*() const {
|
692
|
+
AssertIsFull(ctrl_);
|
693
|
+
return PolicyTraits::element(slot_);
|
694
|
+
}
|
695
|
+
|
696
|
+
// PRECONDITION: not an end() iterator.
|
697
|
+
pointer operator->() const { return &operator*(); }
|
698
|
+
|
699
|
+
// PRECONDITION: not an end() iterator.
|
700
|
+
iterator& operator++() {
|
701
|
+
AssertIsFull(ctrl_);
|
702
|
+
++ctrl_;
|
703
|
+
++slot_;
|
704
|
+
skip_empty_or_deleted();
|
705
|
+
return *this;
|
706
|
+
}
|
707
|
+
// PRECONDITION: not an end() iterator.
|
708
|
+
iterator operator++(int) {
|
709
|
+
auto tmp = *this;
|
710
|
+
++*this;
|
711
|
+
return tmp;
|
712
|
+
}
|
713
|
+
|
714
|
+
friend bool operator==(const iterator& a, const iterator& b) {
|
715
|
+
AssertIsValid(a.ctrl_);
|
716
|
+
AssertIsValid(b.ctrl_);
|
717
|
+
return a.ctrl_ == b.ctrl_;
|
718
|
+
}
|
719
|
+
friend bool operator!=(const iterator& a, const iterator& b) {
|
720
|
+
return !(a == b);
|
721
|
+
}
|
722
|
+
|
723
|
+
private:
|
724
|
+
iterator(ctrl_t* ctrl, slot_type* slot) : ctrl_(ctrl), slot_(slot) {
|
725
|
+
// This assumption helps the compiler know that any non-end iterator is
|
726
|
+
// not equal to any end iterator.
|
727
|
+
ABSL_INTERNAL_ASSUME(ctrl != nullptr);
|
728
|
+
}
|
729
|
+
|
730
|
+
void skip_empty_or_deleted() {
|
731
|
+
while (IsEmptyOrDeleted(*ctrl_)) {
|
732
|
+
uint32_t shift = Group{ctrl_}.CountLeadingEmptyOrDeleted();
|
733
|
+
ctrl_ += shift;
|
734
|
+
slot_ += shift;
|
735
|
+
}
|
736
|
+
if (ABSL_PREDICT_FALSE(*ctrl_ == kSentinel)) ctrl_ = nullptr;
|
737
|
+
}
|
738
|
+
|
739
|
+
ctrl_t* ctrl_ = nullptr;
|
740
|
+
// To avoid uninitialized member warnings, put slot_ in an anonymous union.
|
741
|
+
// The member is not initialized on singleton and end iterators.
|
742
|
+
union {
|
743
|
+
slot_type* slot_;
|
744
|
+
};
|
745
|
+
};
|
746
|
+
|
747
|
+
class const_iterator {
|
748
|
+
friend class raw_hash_set;
|
749
|
+
|
750
|
+
public:
|
751
|
+
using iterator_category = typename iterator::iterator_category;
|
752
|
+
using value_type = typename raw_hash_set::value_type;
|
753
|
+
using reference = typename raw_hash_set::const_reference;
|
754
|
+
using pointer = typename raw_hash_set::const_pointer;
|
755
|
+
using difference_type = typename raw_hash_set::difference_type;
|
756
|
+
|
757
|
+
const_iterator() {}
|
758
|
+
// Implicit construction from iterator.
|
759
|
+
const_iterator(iterator i) : inner_(std::move(i)) {}
|
760
|
+
|
761
|
+
reference operator*() const { return *inner_; }
|
762
|
+
pointer operator->() const { return inner_.operator->(); }
|
763
|
+
|
764
|
+
const_iterator& operator++() {
|
765
|
+
++inner_;
|
766
|
+
return *this;
|
767
|
+
}
|
768
|
+
const_iterator operator++(int) { return inner_++; }
|
769
|
+
|
770
|
+
friend bool operator==(const const_iterator& a, const const_iterator& b) {
|
771
|
+
return a.inner_ == b.inner_;
|
772
|
+
}
|
773
|
+
friend bool operator!=(const const_iterator& a, const const_iterator& b) {
|
774
|
+
return !(a == b);
|
775
|
+
}
|
776
|
+
|
777
|
+
private:
|
778
|
+
const_iterator(const ctrl_t* ctrl, const slot_type* slot)
|
779
|
+
: inner_(const_cast<ctrl_t*>(ctrl), const_cast<slot_type*>(slot)) {}
|
780
|
+
|
781
|
+
iterator inner_;
|
782
|
+
};
|
783
|
+
|
784
|
+
using node_type = node_handle<Policy, hash_policy_traits<Policy>, Alloc>;
|
785
|
+
using insert_return_type = InsertReturnType<iterator, node_type>;
|
786
|
+
|
787
|
+
raw_hash_set() noexcept(
|
788
|
+
std::is_nothrow_default_constructible<hasher>::value&&
|
789
|
+
std::is_nothrow_default_constructible<key_equal>::value&&
|
790
|
+
std::is_nothrow_default_constructible<allocator_type>::value) {}
|
791
|
+
|
792
|
+
explicit raw_hash_set(size_t bucket_count, const hasher& hash = hasher(),
|
793
|
+
const key_equal& eq = key_equal(),
|
794
|
+
const allocator_type& alloc = allocator_type())
|
795
|
+
: ctrl_(EmptyGroup()),
|
796
|
+
settings_(0, HashtablezInfoHandle(), hash, eq, alloc) {
|
797
|
+
if (bucket_count) {
|
798
|
+
capacity_ = NormalizeCapacity(bucket_count);
|
799
|
+
initialize_slots();
|
800
|
+
}
|
801
|
+
}
|
802
|
+
|
803
|
+
raw_hash_set(size_t bucket_count, const hasher& hash,
|
804
|
+
const allocator_type& alloc)
|
805
|
+
: raw_hash_set(bucket_count, hash, key_equal(), alloc) {}
|
806
|
+
|
807
|
+
raw_hash_set(size_t bucket_count, const allocator_type& alloc)
|
808
|
+
: raw_hash_set(bucket_count, hasher(), key_equal(), alloc) {}
|
809
|
+
|
810
|
+
explicit raw_hash_set(const allocator_type& alloc)
|
811
|
+
: raw_hash_set(0, hasher(), key_equal(), alloc) {}
|
812
|
+
|
813
|
+
template <class InputIter>
|
814
|
+
raw_hash_set(InputIter first, InputIter last, size_t bucket_count = 0,
|
815
|
+
const hasher& hash = hasher(), const key_equal& eq = key_equal(),
|
816
|
+
const allocator_type& alloc = allocator_type())
|
817
|
+
: raw_hash_set(bucket_count, hash, eq, alloc) {
|
818
|
+
insert(first, last);
|
819
|
+
}
|
820
|
+
|
821
|
+
template <class InputIter>
|
822
|
+
raw_hash_set(InputIter first, InputIter last, size_t bucket_count,
|
823
|
+
const hasher& hash, const allocator_type& alloc)
|
824
|
+
: raw_hash_set(first, last, bucket_count, hash, key_equal(), alloc) {}
|
825
|
+
|
826
|
+
template <class InputIter>
|
827
|
+
raw_hash_set(InputIter first, InputIter last, size_t bucket_count,
|
828
|
+
const allocator_type& alloc)
|
829
|
+
: raw_hash_set(first, last, bucket_count, hasher(), key_equal(), alloc) {}
|
830
|
+
|
831
|
+
template <class InputIter>
|
832
|
+
raw_hash_set(InputIter first, InputIter last, const allocator_type& alloc)
|
833
|
+
: raw_hash_set(first, last, 0, hasher(), key_equal(), alloc) {}
|
834
|
+
|
835
|
+
// Instead of accepting std::initializer_list<value_type> as the first
|
836
|
+
// argument like std::unordered_set<value_type> does, we have two overloads
|
837
|
+
// that accept std::initializer_list<T> and std::initializer_list<init_type>.
|
838
|
+
// This is advantageous for performance.
|
839
|
+
//
|
840
|
+
// // Turns {"abc", "def"} into std::initializer_list<std::string>, then
|
841
|
+
// // copies the strings into the set.
|
842
|
+
// std::unordered_set<std::string> s = {"abc", "def"};
|
843
|
+
//
|
844
|
+
// // Turns {"abc", "def"} into std::initializer_list<const char*>, then
|
845
|
+
// // copies the strings into the set.
|
846
|
+
// absl::flat_hash_set<std::string> s = {"abc", "def"};
|
847
|
+
//
|
848
|
+
// The same trick is used in insert().
|
849
|
+
//
|
850
|
+
// The enabler is necessary to prevent this constructor from triggering where
|
851
|
+
// the copy constructor is meant to be called.
|
852
|
+
//
|
853
|
+
// absl::flat_hash_set<int> a, b{a};
|
854
|
+
//
|
855
|
+
// RequiresNotInit<T> is a workaround for gcc prior to 7.1.
|
856
|
+
template <class T, RequiresNotInit<T> = 0, RequiresInsertable<T> = 0>
|
857
|
+
raw_hash_set(std::initializer_list<T> init, size_t bucket_count = 0,
|
858
|
+
const hasher& hash = hasher(), const key_equal& eq = key_equal(),
|
859
|
+
const allocator_type& alloc = allocator_type())
|
860
|
+
: raw_hash_set(init.begin(), init.end(), bucket_count, hash, eq, alloc) {}
|
861
|
+
|
862
|
+
raw_hash_set(std::initializer_list<init_type> init, size_t bucket_count = 0,
|
863
|
+
const hasher& hash = hasher(), const key_equal& eq = key_equal(),
|
864
|
+
const allocator_type& alloc = allocator_type())
|
865
|
+
: raw_hash_set(init.begin(), init.end(), bucket_count, hash, eq, alloc) {}
|
866
|
+
|
867
|
+
template <class T, RequiresNotInit<T> = 0, RequiresInsertable<T> = 0>
|
868
|
+
raw_hash_set(std::initializer_list<T> init, size_t bucket_count,
|
869
|
+
const hasher& hash, const allocator_type& alloc)
|
870
|
+
: raw_hash_set(init, bucket_count, hash, key_equal(), alloc) {}
|
871
|
+
|
872
|
+
raw_hash_set(std::initializer_list<init_type> init, size_t bucket_count,
|
873
|
+
const hasher& hash, const allocator_type& alloc)
|
874
|
+
: raw_hash_set(init, bucket_count, hash, key_equal(), alloc) {}
|
875
|
+
|
876
|
+
template <class T, RequiresNotInit<T> = 0, RequiresInsertable<T> = 0>
|
877
|
+
raw_hash_set(std::initializer_list<T> init, size_t bucket_count,
|
878
|
+
const allocator_type& alloc)
|
879
|
+
: raw_hash_set(init, bucket_count, hasher(), key_equal(), alloc) {}
|
880
|
+
|
881
|
+
raw_hash_set(std::initializer_list<init_type> init, size_t bucket_count,
|
882
|
+
const allocator_type& alloc)
|
883
|
+
: raw_hash_set(init, bucket_count, hasher(), key_equal(), alloc) {}
|
884
|
+
|
885
|
+
template <class T, RequiresNotInit<T> = 0, RequiresInsertable<T> = 0>
|
886
|
+
raw_hash_set(std::initializer_list<T> init, const allocator_type& alloc)
|
887
|
+
: raw_hash_set(init, 0, hasher(), key_equal(), alloc) {}
|
888
|
+
|
889
|
+
raw_hash_set(std::initializer_list<init_type> init,
|
890
|
+
const allocator_type& alloc)
|
891
|
+
: raw_hash_set(init, 0, hasher(), key_equal(), alloc) {}
|
892
|
+
|
893
|
+
raw_hash_set(const raw_hash_set& that)
|
894
|
+
: raw_hash_set(that, AllocTraits::select_on_container_copy_construction(
|
895
|
+
that.alloc_ref())) {}
|
896
|
+
|
897
|
+
raw_hash_set(const raw_hash_set& that, const allocator_type& a)
|
898
|
+
: raw_hash_set(0, that.hash_ref(), that.eq_ref(), a) {
|
899
|
+
reserve(that.size());
|
900
|
+
// Because the table is guaranteed to be empty, we can do something faster
|
901
|
+
// than a full `insert`.
|
902
|
+
for (const auto& v : that) {
|
903
|
+
const size_t hash = PolicyTraits::apply(HashElement{hash_ref()}, v);
|
904
|
+
auto target = find_first_non_full(ctrl_, hash, capacity_);
|
905
|
+
set_ctrl(target.offset, H2(hash));
|
906
|
+
emplace_at(target.offset, v);
|
907
|
+
infoz().RecordInsert(hash, target.probe_length);
|
908
|
+
}
|
909
|
+
size_ = that.size();
|
910
|
+
growth_left() -= that.size();
|
911
|
+
}
|
912
|
+
|
913
|
+
raw_hash_set(raw_hash_set&& that) noexcept(
|
914
|
+
std::is_nothrow_copy_constructible<hasher>::value&&
|
915
|
+
std::is_nothrow_copy_constructible<key_equal>::value&&
|
916
|
+
std::is_nothrow_copy_constructible<allocator_type>::value)
|
917
|
+
: ctrl_(absl::exchange(that.ctrl_, EmptyGroup())),
|
918
|
+
slots_(absl::exchange(that.slots_, nullptr)),
|
919
|
+
size_(absl::exchange(that.size_, 0)),
|
920
|
+
capacity_(absl::exchange(that.capacity_, 0)),
|
921
|
+
// Hash, equality and allocator are copied instead of moved because
|
922
|
+
// `that` must be left valid. If Hash is std::function<Key>, moving it
|
923
|
+
// would create a nullptr functor that cannot be called.
|
924
|
+
settings_(absl::exchange(that.growth_left(), 0),
|
925
|
+
absl::exchange(that.infoz(), HashtablezInfoHandle()),
|
926
|
+
that.hash_ref(), that.eq_ref(), that.alloc_ref()) {}
|
927
|
+
|
928
|
+
raw_hash_set(raw_hash_set&& that, const allocator_type& a)
|
929
|
+
: ctrl_(EmptyGroup()),
|
930
|
+
slots_(nullptr),
|
931
|
+
size_(0),
|
932
|
+
capacity_(0),
|
933
|
+
settings_(0, HashtablezInfoHandle(), that.hash_ref(), that.eq_ref(),
|
934
|
+
a) {
|
935
|
+
if (a == that.alloc_ref()) {
|
936
|
+
std::swap(ctrl_, that.ctrl_);
|
937
|
+
std::swap(slots_, that.slots_);
|
938
|
+
std::swap(size_, that.size_);
|
939
|
+
std::swap(capacity_, that.capacity_);
|
940
|
+
std::swap(growth_left(), that.growth_left());
|
941
|
+
std::swap(infoz(), that.infoz());
|
942
|
+
} else {
|
943
|
+
reserve(that.size());
|
944
|
+
// Note: this will copy elements of dense_set and unordered_set instead of
|
945
|
+
// moving them. This can be fixed if it ever becomes an issue.
|
946
|
+
for (auto& elem : that) insert(std::move(elem));
|
947
|
+
}
|
948
|
+
}
|
949
|
+
|
950
|
+
raw_hash_set& operator=(const raw_hash_set& that) {
|
951
|
+
raw_hash_set tmp(that,
|
952
|
+
AllocTraits::propagate_on_container_copy_assignment::value
|
953
|
+
? that.alloc_ref()
|
954
|
+
: alloc_ref());
|
955
|
+
swap(tmp);
|
956
|
+
return *this;
|
957
|
+
}
|
958
|
+
|
959
|
+
raw_hash_set& operator=(raw_hash_set&& that) noexcept(
|
960
|
+
absl::allocator_traits<allocator_type>::is_always_equal::value&&
|
961
|
+
std::is_nothrow_move_assignable<hasher>::value&&
|
962
|
+
std::is_nothrow_move_assignable<key_equal>::value) {
|
963
|
+
// TODO(sbenza): We should only use the operations from the noexcept clause
|
964
|
+
// to make sure we actually adhere to that contract.
|
965
|
+
return move_assign(
|
966
|
+
std::move(that),
|
967
|
+
typename AllocTraits::propagate_on_container_move_assignment());
|
968
|
+
}
|
969
|
+
|
970
|
+
~raw_hash_set() { destroy_slots(); }
|
971
|
+
|
972
|
+
iterator begin() {
|
973
|
+
auto it = iterator_at(0);
|
974
|
+
it.skip_empty_or_deleted();
|
975
|
+
return it;
|
976
|
+
}
|
977
|
+
iterator end() { return {}; }
|
978
|
+
|
979
|
+
const_iterator begin() const {
|
980
|
+
return const_cast<raw_hash_set*>(this)->begin();
|
981
|
+
}
|
982
|
+
const_iterator end() const { return {}; }
|
983
|
+
const_iterator cbegin() const { return begin(); }
|
984
|
+
const_iterator cend() const { return end(); }
|
985
|
+
|
986
|
+
bool empty() const { return !size(); }
|
987
|
+
size_t size() const { return size_; }
|
988
|
+
size_t capacity() const { return capacity_; }
|
989
|
+
size_t max_size() const { return (std::numeric_limits<size_t>::max)(); }
|
990
|
+
|
991
|
+
ABSL_ATTRIBUTE_REINITIALIZES void clear() {
|
992
|
+
// Iterating over this container is O(bucket_count()). When bucket_count()
|
993
|
+
// is much greater than size(), iteration becomes prohibitively expensive.
|
994
|
+
// For clear() it is more important to reuse the allocated array when the
|
995
|
+
// container is small because allocation takes comparatively long time
|
996
|
+
// compared to destruction of the elements of the container. So we pick the
|
997
|
+
// largest bucket_count() threshold for which iteration is still fast and
|
998
|
+
// past that we simply deallocate the array.
|
999
|
+
if (capacity_ > 127) {
|
1000
|
+
destroy_slots();
|
1001
|
+
} else if (capacity_) {
|
1002
|
+
for (size_t i = 0; i != capacity_; ++i) {
|
1003
|
+
if (IsFull(ctrl_[i])) {
|
1004
|
+
PolicyTraits::destroy(&alloc_ref(), slots_ + i);
|
1005
|
+
}
|
1006
|
+
}
|
1007
|
+
size_ = 0;
|
1008
|
+
reset_ctrl();
|
1009
|
+
reset_growth_left();
|
1010
|
+
}
|
1011
|
+
assert(empty());
|
1012
|
+
infoz().RecordStorageChanged(0, capacity_);
|
1013
|
+
}
|
1014
|
+
|
1015
|
+
// This overload kicks in when the argument is an rvalue of insertable and
|
1016
|
+
// decomposable type other than init_type.
|
1017
|
+
//
|
1018
|
+
// flat_hash_map<std::string, int> m;
|
1019
|
+
// m.insert(std::make_pair("abc", 42));
|
1020
|
+
// TODO(cheshire): A type alias T2 is introduced as a workaround for the nvcc
|
1021
|
+
// bug.
|
1022
|
+
template <class T, RequiresInsertable<T> = 0,
|
1023
|
+
class T2 = T,
|
1024
|
+
typename std::enable_if<IsDecomposable<T2>::value, int>::type = 0,
|
1025
|
+
T* = nullptr>
|
1026
|
+
std::pair<iterator, bool> insert(T&& value) {
|
1027
|
+
return emplace(std::forward<T>(value));
|
1028
|
+
}
|
1029
|
+
|
1030
|
+
// This overload kicks in when the argument is a bitfield or an lvalue of
|
1031
|
+
// insertable and decomposable type.
|
1032
|
+
//
|
1033
|
+
// union { int n : 1; };
|
1034
|
+
// flat_hash_set<int> s;
|
1035
|
+
// s.insert(n);
|
1036
|
+
//
|
1037
|
+
// flat_hash_set<std::string> s;
|
1038
|
+
// const char* p = "hello";
|
1039
|
+
// s.insert(p);
|
1040
|
+
//
|
1041
|
+
// TODO(romanp): Once we stop supporting gcc 5.1 and below, replace
|
1042
|
+
// RequiresInsertable<T> with RequiresInsertable<const T&>.
|
1043
|
+
// We are hitting this bug: https://godbolt.org/g/1Vht4f.
|
1044
|
+
template <
|
1045
|
+
class T, RequiresInsertable<T> = 0,
|
1046
|
+
typename std::enable_if<IsDecomposable<const T&>::value, int>::type = 0>
|
1047
|
+
std::pair<iterator, bool> insert(const T& value) {
|
1048
|
+
return emplace(value);
|
1049
|
+
}
|
1050
|
+
|
1051
|
+
// This overload kicks in when the argument is an rvalue of init_type. Its
|
1052
|
+
// purpose is to handle brace-init-list arguments.
|
1053
|
+
//
|
1054
|
+
// flat_hash_map<std::string, int> s;
|
1055
|
+
// s.insert({"abc", 42});
|
1056
|
+
std::pair<iterator, bool> insert(init_type&& value) {
|
1057
|
+
return emplace(std::move(value));
|
1058
|
+
}
|
1059
|
+
|
1060
|
+
// TODO(cheshire): A type alias T2 is introduced as a workaround for the nvcc
|
1061
|
+
// bug.
|
1062
|
+
template <class T, RequiresInsertable<T> = 0, class T2 = T,
|
1063
|
+
typename std::enable_if<IsDecomposable<T2>::value, int>::type = 0,
|
1064
|
+
T* = nullptr>
|
1065
|
+
iterator insert(const_iterator, T&& value) {
|
1066
|
+
return insert(std::forward<T>(value)).first;
|
1067
|
+
}
|
1068
|
+
|
1069
|
+
// TODO(romanp): Once we stop supporting gcc 5.1 and below, replace
|
1070
|
+
// RequiresInsertable<T> with RequiresInsertable<const T&>.
|
1071
|
+
// We are hitting this bug: https://godbolt.org/g/1Vht4f.
|
1072
|
+
template <
|
1073
|
+
class T, RequiresInsertable<T> = 0,
|
1074
|
+
typename std::enable_if<IsDecomposable<const T&>::value, int>::type = 0>
|
1075
|
+
iterator insert(const_iterator, const T& value) {
|
1076
|
+
return insert(value).first;
|
1077
|
+
}
|
1078
|
+
|
1079
|
+
iterator insert(const_iterator, init_type&& value) {
|
1080
|
+
return insert(std::move(value)).first;
|
1081
|
+
}
|
1082
|
+
|
1083
|
+
template <class InputIt>
|
1084
|
+
void insert(InputIt first, InputIt last) {
|
1085
|
+
for (; first != last; ++first) emplace(*first);
|
1086
|
+
}
|
1087
|
+
|
1088
|
+
template <class T, RequiresNotInit<T> = 0, RequiresInsertable<const T&> = 0>
|
1089
|
+
void insert(std::initializer_list<T> ilist) {
|
1090
|
+
insert(ilist.begin(), ilist.end());
|
1091
|
+
}
|
1092
|
+
|
1093
|
+
void insert(std::initializer_list<init_type> ilist) {
|
1094
|
+
insert(ilist.begin(), ilist.end());
|
1095
|
+
}
|
1096
|
+
|
1097
|
+
insert_return_type insert(node_type&& node) {
|
1098
|
+
if (!node) return {end(), false, node_type()};
|
1099
|
+
const auto& elem = PolicyTraits::element(CommonAccess::GetSlot(node));
|
1100
|
+
auto res = PolicyTraits::apply(
|
1101
|
+
InsertSlot<false>{*this, std::move(*CommonAccess::GetSlot(node))},
|
1102
|
+
elem);
|
1103
|
+
if (res.second) {
|
1104
|
+
CommonAccess::Reset(&node);
|
1105
|
+
return {res.first, true, node_type()};
|
1106
|
+
} else {
|
1107
|
+
return {res.first, false, std::move(node)};
|
1108
|
+
}
|
1109
|
+
}
|
1110
|
+
|
1111
|
+
iterator insert(const_iterator, node_type&& node) {
|
1112
|
+
auto res = insert(std::move(node));
|
1113
|
+
node = std::move(res.node);
|
1114
|
+
return res.position;
|
1115
|
+
}
|
1116
|
+
|
1117
|
+
// This overload kicks in if we can deduce the key from args. This enables us
|
1118
|
+
// to avoid constructing value_type if an entry with the same key already
|
1119
|
+
// exists.
|
1120
|
+
//
|
1121
|
+
// For example:
|
1122
|
+
//
|
1123
|
+
// flat_hash_map<std::string, std::string> m = {{"abc", "def"}};
|
1124
|
+
// // Creates no std::string copies and makes no heap allocations.
|
1125
|
+
// m.emplace("abc", "xyz");
|
1126
|
+
template <class... Args, typename std::enable_if<
|
1127
|
+
IsDecomposable<Args...>::value, int>::type = 0>
|
1128
|
+
std::pair<iterator, bool> emplace(Args&&... args) {
|
1129
|
+
return PolicyTraits::apply(EmplaceDecomposable{*this},
|
1130
|
+
std::forward<Args>(args)...);
|
1131
|
+
}
|
1132
|
+
|
1133
|
+
// This overload kicks in if we cannot deduce the key from args. It constructs
|
1134
|
+
// value_type unconditionally and then either moves it into the table or
|
1135
|
+
// destroys.
|
1136
|
+
template <class... Args, typename std::enable_if<
|
1137
|
+
!IsDecomposable<Args...>::value, int>::type = 0>
|
1138
|
+
std::pair<iterator, bool> emplace(Args&&... args) {
|
1139
|
+
alignas(slot_type) unsigned char raw[sizeof(slot_type)];
|
1140
|
+
slot_type* slot = reinterpret_cast<slot_type*>(&raw);
|
1141
|
+
|
1142
|
+
PolicyTraits::construct(&alloc_ref(), slot, std::forward<Args>(args)...);
|
1143
|
+
const auto& elem = PolicyTraits::element(slot);
|
1144
|
+
return PolicyTraits::apply(InsertSlot<true>{*this, std::move(*slot)}, elem);
|
1145
|
+
}
|
1146
|
+
|
1147
|
+
template <class... Args>
|
1148
|
+
iterator emplace_hint(const_iterator, Args&&... args) {
|
1149
|
+
return emplace(std::forward<Args>(args)...).first;
|
1150
|
+
}
|
1151
|
+
|
1152
|
+
// Extension API: support for lazy emplace.
|
1153
|
+
//
|
1154
|
+
// Looks up key in the table. If found, returns the iterator to the element.
|
1155
|
+
// Otherwise calls `f` with one argument of type `raw_hash_set::constructor`.
|
1156
|
+
//
|
1157
|
+
// `f` must abide by several restrictions:
|
1158
|
+
// - it MUST call `raw_hash_set::constructor` with arguments as if a
|
1159
|
+
// `raw_hash_set::value_type` is constructed,
|
1160
|
+
// - it MUST NOT access the container before the call to
|
1161
|
+
// `raw_hash_set::constructor`, and
|
1162
|
+
// - it MUST NOT erase the lazily emplaced element.
|
1163
|
+
// Doing any of these is undefined behavior.
|
1164
|
+
//
|
1165
|
+
// For example:
|
1166
|
+
//
|
1167
|
+
// std::unordered_set<ArenaString> s;
|
1168
|
+
// // Makes ArenaStr even if "abc" is in the map.
|
1169
|
+
// s.insert(ArenaString(&arena, "abc"));
|
1170
|
+
//
|
1171
|
+
// flat_hash_set<ArenaStr> s;
|
1172
|
+
// // Makes ArenaStr only if "abc" is not in the map.
|
1173
|
+
// s.lazy_emplace("abc", [&](const constructor& ctor) {
|
1174
|
+
// ctor(&arena, "abc");
|
1175
|
+
// });
|
1176
|
+
//
|
1177
|
+
// WARNING: This API is currently experimental. If there is a way to implement
|
1178
|
+
// the same thing with the rest of the API, prefer that.
|
1179
|
+
class constructor {
|
1180
|
+
friend class raw_hash_set;
|
1181
|
+
|
1182
|
+
public:
|
1183
|
+
template <class... Args>
|
1184
|
+
void operator()(Args&&... args) const {
|
1185
|
+
assert(*slot_);
|
1186
|
+
PolicyTraits::construct(alloc_, *slot_, std::forward<Args>(args)...);
|
1187
|
+
*slot_ = nullptr;
|
1188
|
+
}
|
1189
|
+
|
1190
|
+
private:
|
1191
|
+
constructor(allocator_type* a, slot_type** slot) : alloc_(a), slot_(slot) {}
|
1192
|
+
|
1193
|
+
allocator_type* alloc_;
|
1194
|
+
slot_type** slot_;
|
1195
|
+
};
|
1196
|
+
|
1197
|
+
template <class K = key_type, class F>
|
1198
|
+
iterator lazy_emplace(const key_arg<K>& key, F&& f) {
|
1199
|
+
auto res = find_or_prepare_insert(key);
|
1200
|
+
if (res.second) {
|
1201
|
+
slot_type* slot = slots_ + res.first;
|
1202
|
+
std::forward<F>(f)(constructor(&alloc_ref(), &slot));
|
1203
|
+
assert(!slot);
|
1204
|
+
}
|
1205
|
+
return iterator_at(res.first);
|
1206
|
+
}
|
1207
|
+
|
1208
|
+
// Extension API: support for heterogeneous keys.
|
1209
|
+
//
|
1210
|
+
// std::unordered_set<std::string> s;
|
1211
|
+
// // Turns "abc" into std::string.
|
1212
|
+
// s.erase("abc");
|
1213
|
+
//
|
1214
|
+
// flat_hash_set<std::string> s;
|
1215
|
+
// // Uses "abc" directly without copying it into std::string.
|
1216
|
+
// s.erase("abc");
|
1217
|
+
template <class K = key_type>
|
1218
|
+
size_type erase(const key_arg<K>& key) {
|
1219
|
+
auto it = find(key);
|
1220
|
+
if (it == end()) return 0;
|
1221
|
+
erase(it);
|
1222
|
+
return 1;
|
1223
|
+
}
|
1224
|
+
|
1225
|
+
// Erases the element pointed to by `it`. Unlike `std::unordered_set::erase`,
|
1226
|
+
// this method returns void to reduce algorithmic complexity to O(1). The
|
1227
|
+
// iterator is invalidated, so any increment should be done before calling
|
1228
|
+
// erase. In order to erase while iterating across a map, use the following
|
1229
|
+
// idiom (which also works for standard containers):
|
1230
|
+
//
|
1231
|
+
// for (auto it = m.begin(), end = m.end(); it != end;) {
|
1232
|
+
// // `erase()` will invalidate `it`, so advance `it` first.
|
1233
|
+
// auto copy_it = it++;
|
1234
|
+
// if (<pred>) {
|
1235
|
+
// m.erase(copy_it);
|
1236
|
+
// }
|
1237
|
+
// }
|
1238
|
+
void erase(const_iterator cit) { erase(cit.inner_); }
|
1239
|
+
|
1240
|
+
// This overload is necessary because otherwise erase<K>(const K&) would be
|
1241
|
+
// a better match if non-const iterator is passed as an argument.
|
1242
|
+
void erase(iterator it) {
|
1243
|
+
AssertIsFull(it.ctrl_);
|
1244
|
+
PolicyTraits::destroy(&alloc_ref(), it.slot_);
|
1245
|
+
erase_meta_only(it);
|
1246
|
+
}
|
1247
|
+
|
1248
|
+
iterator erase(const_iterator first, const_iterator last) {
|
1249
|
+
while (first != last) {
|
1250
|
+
erase(first++);
|
1251
|
+
}
|
1252
|
+
return last.inner_;
|
1253
|
+
}
|
1254
|
+
|
1255
|
+
// Moves elements from `src` into `this`.
|
1256
|
+
// If the element already exists in `this`, it is left unmodified in `src`.
|
1257
|
+
template <typename H, typename E>
|
1258
|
+
void merge(raw_hash_set<Policy, H, E, Alloc>& src) { // NOLINT
|
1259
|
+
assert(this != &src);
|
1260
|
+
for (auto it = src.begin(), e = src.end(); it != e;) {
|
1261
|
+
auto next = std::next(it);
|
1262
|
+
if (PolicyTraits::apply(InsertSlot<false>{*this, std::move(*it.slot_)},
|
1263
|
+
PolicyTraits::element(it.slot_))
|
1264
|
+
.second) {
|
1265
|
+
src.erase_meta_only(it);
|
1266
|
+
}
|
1267
|
+
it = next;
|
1268
|
+
}
|
1269
|
+
}
|
1270
|
+
|
1271
|
+
template <typename H, typename E>
|
1272
|
+
void merge(raw_hash_set<Policy, H, E, Alloc>&& src) {
|
1273
|
+
merge(src);
|
1274
|
+
}
|
1275
|
+
|
1276
|
+
node_type extract(const_iterator position) {
|
1277
|
+
AssertIsFull(position.inner_.ctrl_);
|
1278
|
+
auto node =
|
1279
|
+
CommonAccess::Transfer<node_type>(alloc_ref(), position.inner_.slot_);
|
1280
|
+
erase_meta_only(position);
|
1281
|
+
return node;
|
1282
|
+
}
|
1283
|
+
|
1284
|
+
template <
|
1285
|
+
class K = key_type,
|
1286
|
+
typename std::enable_if<!std::is_same<K, iterator>::value, int>::type = 0>
|
1287
|
+
node_type extract(const key_arg<K>& key) {
|
1288
|
+
auto it = find(key);
|
1289
|
+
return it == end() ? node_type() : extract(const_iterator{it});
|
1290
|
+
}
|
1291
|
+
|
1292
|
+
void swap(raw_hash_set& that) noexcept(
|
1293
|
+
IsNoThrowSwappable<hasher>() && IsNoThrowSwappable<key_equal>() &&
|
1294
|
+
IsNoThrowSwappable<allocator_type>(
|
1295
|
+
typename AllocTraits::propagate_on_container_swap{})) {
|
1296
|
+
using std::swap;
|
1297
|
+
swap(ctrl_, that.ctrl_);
|
1298
|
+
swap(slots_, that.slots_);
|
1299
|
+
swap(size_, that.size_);
|
1300
|
+
swap(capacity_, that.capacity_);
|
1301
|
+
swap(growth_left(), that.growth_left());
|
1302
|
+
swap(hash_ref(), that.hash_ref());
|
1303
|
+
swap(eq_ref(), that.eq_ref());
|
1304
|
+
swap(infoz(), that.infoz());
|
1305
|
+
SwapAlloc(alloc_ref(), that.alloc_ref(),
|
1306
|
+
typename AllocTraits::propagate_on_container_swap{});
|
1307
|
+
}
|
1308
|
+
|
1309
|
+
void rehash(size_t n) {
|
1310
|
+
if (n == 0 && capacity_ == 0) return;
|
1311
|
+
if (n == 0 && size_ == 0) {
|
1312
|
+
destroy_slots();
|
1313
|
+
infoz().RecordStorageChanged(0, 0);
|
1314
|
+
return;
|
1315
|
+
}
|
1316
|
+
// bitor is a faster way of doing `max` here. We will round up to the next
|
1317
|
+
// power-of-2-minus-1, so bitor is good enough.
|
1318
|
+
auto m = NormalizeCapacity(n | GrowthToLowerboundCapacity(size()));
|
1319
|
+
// n == 0 unconditionally rehashes as per the standard.
|
1320
|
+
if (n == 0 || m > capacity_) {
|
1321
|
+
resize(m);
|
1322
|
+
}
|
1323
|
+
}
|
1324
|
+
|
1325
|
+
void reserve(size_t n) {
|
1326
|
+
size_t m = GrowthToLowerboundCapacity(n);
|
1327
|
+
if (m > capacity_) {
|
1328
|
+
resize(NormalizeCapacity(m));
|
1329
|
+
}
|
1330
|
+
}
|
1331
|
+
|
1332
|
+
// Extension API: support for heterogeneous keys.
|
1333
|
+
//
|
1334
|
+
// std::unordered_set<std::string> s;
|
1335
|
+
// // Turns "abc" into std::string.
|
1336
|
+
// s.count("abc");
|
1337
|
+
//
|
1338
|
+
// ch_set<std::string> s;
|
1339
|
+
// // Uses "abc" directly without copying it into std::string.
|
1340
|
+
// s.count("abc");
|
1341
|
+
template <class K = key_type>
|
1342
|
+
size_t count(const key_arg<K>& key) const {
|
1343
|
+
return find(key) == end() ? 0 : 1;
|
1344
|
+
}
|
1345
|
+
|
1346
|
+
// Issues CPU prefetch instructions for the memory needed to find or insert
|
1347
|
+
// a key. Like all lookup functions, this support heterogeneous keys.
|
1348
|
+
//
|
1349
|
+
// NOTE: This is a very low level operation and should not be used without
|
1350
|
+
// specific benchmarks indicating its importance.
|
1351
|
+
template <class K = key_type>
|
1352
|
+
void prefetch(const key_arg<K>& key) const {
|
1353
|
+
(void)key;
|
1354
|
+
#if defined(__GNUC__)
|
1355
|
+
auto seq = probe(ctrl_, hash_ref()(key), capacity_);
|
1356
|
+
__builtin_prefetch(static_cast<const void*>(ctrl_ + seq.offset()));
|
1357
|
+
__builtin_prefetch(static_cast<const void*>(slots_ + seq.offset()));
|
1358
|
+
#endif // __GNUC__
|
1359
|
+
}
|
1360
|
+
|
1361
|
+
// The API of find() has two extensions.
|
1362
|
+
//
|
1363
|
+
// 1. The hash can be passed by the user. It must be equal to the hash of the
|
1364
|
+
// key.
|
1365
|
+
//
|
1366
|
+
// 2. The type of the key argument doesn't have to be key_type. This is so
|
1367
|
+
// called heterogeneous key support.
|
1368
|
+
template <class K = key_type>
|
1369
|
+
iterator find(const key_arg<K>& key, size_t hash) {
|
1370
|
+
auto seq = probe(ctrl_, hash, capacity_);
|
1371
|
+
while (true) {
|
1372
|
+
Group g{ctrl_ + seq.offset()};
|
1373
|
+
for (int i : g.Match(H2(hash))) {
|
1374
|
+
if (ABSL_PREDICT_TRUE(PolicyTraits::apply(
|
1375
|
+
EqualElement<K>{key, eq_ref()},
|
1376
|
+
PolicyTraits::element(slots_ + seq.offset(i)))))
|
1377
|
+
return iterator_at(seq.offset(i));
|
1378
|
+
}
|
1379
|
+
if (ABSL_PREDICT_TRUE(g.MatchEmpty())) return end();
|
1380
|
+
seq.next();
|
1381
|
+
assert(seq.index() < capacity_ && "full table!");
|
1382
|
+
}
|
1383
|
+
}
|
1384
|
+
template <class K = key_type>
|
1385
|
+
iterator find(const key_arg<K>& key) {
|
1386
|
+
return find(key, hash_ref()(key));
|
1387
|
+
}
|
1388
|
+
|
1389
|
+
template <class K = key_type>
|
1390
|
+
const_iterator find(const key_arg<K>& key, size_t hash) const {
|
1391
|
+
return const_cast<raw_hash_set*>(this)->find(key, hash);
|
1392
|
+
}
|
1393
|
+
template <class K = key_type>
|
1394
|
+
const_iterator find(const key_arg<K>& key) const {
|
1395
|
+
return find(key, hash_ref()(key));
|
1396
|
+
}
|
1397
|
+
|
1398
|
+
template <class K = key_type>
|
1399
|
+
bool contains(const key_arg<K>& key) const {
|
1400
|
+
return find(key) != end();
|
1401
|
+
}
|
1402
|
+
|
1403
|
+
template <class K = key_type>
|
1404
|
+
std::pair<iterator, iterator> equal_range(const key_arg<K>& key) {
|
1405
|
+
auto it = find(key);
|
1406
|
+
if (it != end()) return {it, std::next(it)};
|
1407
|
+
return {it, it};
|
1408
|
+
}
|
1409
|
+
template <class K = key_type>
|
1410
|
+
std::pair<const_iterator, const_iterator> equal_range(
|
1411
|
+
const key_arg<K>& key) const {
|
1412
|
+
auto it = find(key);
|
1413
|
+
if (it != end()) return {it, std::next(it)};
|
1414
|
+
return {it, it};
|
1415
|
+
}
|
1416
|
+
|
1417
|
+
size_t bucket_count() const { return capacity_; }
|
1418
|
+
float load_factor() const {
|
1419
|
+
return capacity_ ? static_cast<double>(size()) / capacity_ : 0.0;
|
1420
|
+
}
|
1421
|
+
float max_load_factor() const { return 1.0f; }
|
1422
|
+
void max_load_factor(float) {
|
1423
|
+
// Does nothing.
|
1424
|
+
}
|
1425
|
+
|
1426
|
+
hasher hash_function() const { return hash_ref(); }
|
1427
|
+
key_equal key_eq() const { return eq_ref(); }
|
1428
|
+
allocator_type get_allocator() const { return alloc_ref(); }
|
1429
|
+
|
1430
|
+
friend bool operator==(const raw_hash_set& a, const raw_hash_set& b) {
|
1431
|
+
if (a.size() != b.size()) return false;
|
1432
|
+
const raw_hash_set* outer = &a;
|
1433
|
+
const raw_hash_set* inner = &b;
|
1434
|
+
if (outer->capacity() > inner->capacity()) std::swap(outer, inner);
|
1435
|
+
for (const value_type& elem : *outer)
|
1436
|
+
if (!inner->has_element(elem)) return false;
|
1437
|
+
return true;
|
1438
|
+
}
|
1439
|
+
|
1440
|
+
friend bool operator!=(const raw_hash_set& a, const raw_hash_set& b) {
|
1441
|
+
return !(a == b);
|
1442
|
+
}
|
1443
|
+
|
1444
|
+
friend void swap(raw_hash_set& a,
|
1445
|
+
raw_hash_set& b) noexcept(noexcept(a.swap(b))) {
|
1446
|
+
a.swap(b);
|
1447
|
+
}
|
1448
|
+
|
1449
|
+
private:
|
1450
|
+
template <class Container, typename Enabler>
|
1451
|
+
friend struct absl::container_internal::hashtable_debug_internal::
|
1452
|
+
HashtableDebugAccess;
|
1453
|
+
|
1454
|
+
struct FindElement {
|
1455
|
+
template <class K, class... Args>
|
1456
|
+
const_iterator operator()(const K& key, Args&&...) const {
|
1457
|
+
return s.find(key);
|
1458
|
+
}
|
1459
|
+
const raw_hash_set& s;
|
1460
|
+
};
|
1461
|
+
|
1462
|
+
struct HashElement {
|
1463
|
+
template <class K, class... Args>
|
1464
|
+
size_t operator()(const K& key, Args&&...) const {
|
1465
|
+
return h(key);
|
1466
|
+
}
|
1467
|
+
const hasher& h;
|
1468
|
+
};
|
1469
|
+
|
1470
|
+
template <class K1>
|
1471
|
+
struct EqualElement {
|
1472
|
+
template <class K2, class... Args>
|
1473
|
+
bool operator()(const K2& lhs, Args&&...) const {
|
1474
|
+
return eq(lhs, rhs);
|
1475
|
+
}
|
1476
|
+
const K1& rhs;
|
1477
|
+
const key_equal& eq;
|
1478
|
+
};
|
1479
|
+
|
1480
|
+
struct EmplaceDecomposable {
|
1481
|
+
template <class K, class... Args>
|
1482
|
+
std::pair<iterator, bool> operator()(const K& key, Args&&... args) const {
|
1483
|
+
auto res = s.find_or_prepare_insert(key);
|
1484
|
+
if (res.second) {
|
1485
|
+
s.emplace_at(res.first, std::forward<Args>(args)...);
|
1486
|
+
}
|
1487
|
+
return {s.iterator_at(res.first), res.second};
|
1488
|
+
}
|
1489
|
+
raw_hash_set& s;
|
1490
|
+
};
|
1491
|
+
|
1492
|
+
template <bool do_destroy>
|
1493
|
+
struct InsertSlot {
|
1494
|
+
template <class K, class... Args>
|
1495
|
+
std::pair<iterator, bool> operator()(const K& key, Args&&...) && {
|
1496
|
+
auto res = s.find_or_prepare_insert(key);
|
1497
|
+
if (res.second) {
|
1498
|
+
PolicyTraits::transfer(&s.alloc_ref(), s.slots_ + res.first, &slot);
|
1499
|
+
} else if (do_destroy) {
|
1500
|
+
PolicyTraits::destroy(&s.alloc_ref(), &slot);
|
1501
|
+
}
|
1502
|
+
return {s.iterator_at(res.first), res.second};
|
1503
|
+
}
|
1504
|
+
raw_hash_set& s;
|
1505
|
+
// Constructed slot. Either moved into place or destroyed.
|
1506
|
+
slot_type&& slot;
|
1507
|
+
};
|
1508
|
+
|
1509
|
+
// "erases" the object from the container, except that it doesn't actually
|
1510
|
+
// destroy the object. It only updates all the metadata of the class.
|
1511
|
+
// This can be used in conjunction with Policy::transfer to move the object to
|
1512
|
+
// another place.
|
1513
|
+
void erase_meta_only(const_iterator it) {
|
1514
|
+
assert(IsFull(*it.inner_.ctrl_) && "erasing a dangling iterator");
|
1515
|
+
--size_;
|
1516
|
+
const size_t index = it.inner_.ctrl_ - ctrl_;
|
1517
|
+
const size_t index_before = (index - Group::kWidth) & capacity_;
|
1518
|
+
const auto empty_after = Group(it.inner_.ctrl_).MatchEmpty();
|
1519
|
+
const auto empty_before = Group(ctrl_ + index_before).MatchEmpty();
|
1520
|
+
|
1521
|
+
// We count how many consecutive non empties we have to the right and to the
|
1522
|
+
// left of `it`. If the sum is >= kWidth then there is at least one probe
|
1523
|
+
// window that might have seen a full group.
|
1524
|
+
bool was_never_full =
|
1525
|
+
empty_before && empty_after &&
|
1526
|
+
static_cast<size_t>(empty_after.TrailingZeros() +
|
1527
|
+
empty_before.LeadingZeros()) < Group::kWidth;
|
1528
|
+
|
1529
|
+
set_ctrl(index, was_never_full ? kEmpty : kDeleted);
|
1530
|
+
growth_left() += was_never_full;
|
1531
|
+
infoz().RecordErase();
|
1532
|
+
}
|
1533
|
+
|
1534
|
+
void initialize_slots() {
|
1535
|
+
assert(capacity_);
|
1536
|
+
// Folks with custom allocators often make unwarranted assumptions about the
|
1537
|
+
// behavior of their classes vis-a-vis trivial destructability and what
|
1538
|
+
// calls they will or wont make. Avoid sampling for people with custom
|
1539
|
+
// allocators to get us out of this mess. This is not a hard guarantee but
|
1540
|
+
// a workaround while we plan the exact guarantee we want to provide.
|
1541
|
+
//
|
1542
|
+
// People are often sloppy with the exact type of their allocator (sometimes
|
1543
|
+
// it has an extra const or is missing the pair, but rebinds made it work
|
1544
|
+
// anyway). To avoid the ambiguity, we work off SlotAlloc which we have
|
1545
|
+
// bound more carefully.
|
1546
|
+
if (std::is_same<SlotAlloc, std::allocator<slot_type>>::value &&
|
1547
|
+
slots_ == nullptr) {
|
1548
|
+
infoz() = Sample();
|
1549
|
+
}
|
1550
|
+
|
1551
|
+
auto layout = MakeLayout(capacity_);
|
1552
|
+
char* mem = static_cast<char*>(
|
1553
|
+
Allocate<Layout::Alignment()>(&alloc_ref(), layout.AllocSize()));
|
1554
|
+
ctrl_ = reinterpret_cast<ctrl_t*>(layout.template Pointer<0>(mem));
|
1555
|
+
slots_ = layout.template Pointer<1>(mem);
|
1556
|
+
reset_ctrl();
|
1557
|
+
reset_growth_left();
|
1558
|
+
infoz().RecordStorageChanged(size_, capacity_);
|
1559
|
+
}
|
1560
|
+
|
1561
|
+
void destroy_slots() {
|
1562
|
+
if (!capacity_) return;
|
1563
|
+
for (size_t i = 0; i != capacity_; ++i) {
|
1564
|
+
if (IsFull(ctrl_[i])) {
|
1565
|
+
PolicyTraits::destroy(&alloc_ref(), slots_ + i);
|
1566
|
+
}
|
1567
|
+
}
|
1568
|
+
auto layout = MakeLayout(capacity_);
|
1569
|
+
// Unpoison before returning the memory to the allocator.
|
1570
|
+
SanitizerUnpoisonMemoryRegion(slots_, sizeof(slot_type) * capacity_);
|
1571
|
+
Deallocate<Layout::Alignment()>(&alloc_ref(), ctrl_, layout.AllocSize());
|
1572
|
+
ctrl_ = EmptyGroup();
|
1573
|
+
slots_ = nullptr;
|
1574
|
+
size_ = 0;
|
1575
|
+
capacity_ = 0;
|
1576
|
+
growth_left() = 0;
|
1577
|
+
}
|
1578
|
+
|
1579
|
+
void resize(size_t new_capacity) {
|
1580
|
+
assert(IsValidCapacity(new_capacity));
|
1581
|
+
auto* old_ctrl = ctrl_;
|
1582
|
+
auto* old_slots = slots_;
|
1583
|
+
const size_t old_capacity = capacity_;
|
1584
|
+
capacity_ = new_capacity;
|
1585
|
+
initialize_slots();
|
1586
|
+
|
1587
|
+
size_t total_probe_length = 0;
|
1588
|
+
for (size_t i = 0; i != old_capacity; ++i) {
|
1589
|
+
if (IsFull(old_ctrl[i])) {
|
1590
|
+
size_t hash = PolicyTraits::apply(HashElement{hash_ref()},
|
1591
|
+
PolicyTraits::element(old_slots + i));
|
1592
|
+
auto target = find_first_non_full(ctrl_, hash, capacity_);
|
1593
|
+
size_t new_i = target.offset;
|
1594
|
+
total_probe_length += target.probe_length;
|
1595
|
+
set_ctrl(new_i, H2(hash));
|
1596
|
+
PolicyTraits::transfer(&alloc_ref(), slots_ + new_i, old_slots + i);
|
1597
|
+
}
|
1598
|
+
}
|
1599
|
+
if (old_capacity) {
|
1600
|
+
SanitizerUnpoisonMemoryRegion(old_slots,
|
1601
|
+
sizeof(slot_type) * old_capacity);
|
1602
|
+
auto layout = MakeLayout(old_capacity);
|
1603
|
+
Deallocate<Layout::Alignment()>(&alloc_ref(), old_ctrl,
|
1604
|
+
layout.AllocSize());
|
1605
|
+
}
|
1606
|
+
infoz().RecordRehash(total_probe_length);
|
1607
|
+
}
|
1608
|
+
|
1609
|
+
void drop_deletes_without_resize() ABSL_ATTRIBUTE_NOINLINE {
|
1610
|
+
assert(IsValidCapacity(capacity_));
|
1611
|
+
assert(!is_small(capacity_));
|
1612
|
+
// Algorithm:
|
1613
|
+
// - mark all DELETED slots as EMPTY
|
1614
|
+
// - mark all FULL slots as DELETED
|
1615
|
+
// - for each slot marked as DELETED
|
1616
|
+
// hash = Hash(element)
|
1617
|
+
// target = find_first_non_full(hash)
|
1618
|
+
// if target is in the same group
|
1619
|
+
// mark slot as FULL
|
1620
|
+
// else if target is EMPTY
|
1621
|
+
// transfer element to target
|
1622
|
+
// mark slot as EMPTY
|
1623
|
+
// mark target as FULL
|
1624
|
+
// else if target is DELETED
|
1625
|
+
// swap current element with target element
|
1626
|
+
// mark target as FULL
|
1627
|
+
// repeat procedure for current slot with moved from element (target)
|
1628
|
+
ConvertDeletedToEmptyAndFullToDeleted(ctrl_, capacity_);
|
1629
|
+
alignas(slot_type) unsigned char raw[sizeof(slot_type)];
|
1630
|
+
size_t total_probe_length = 0;
|
1631
|
+
slot_type* slot = reinterpret_cast<slot_type*>(&raw);
|
1632
|
+
for (size_t i = 0; i != capacity_; ++i) {
|
1633
|
+
if (!IsDeleted(ctrl_[i])) continue;
|
1634
|
+
size_t hash = PolicyTraits::apply(HashElement{hash_ref()},
|
1635
|
+
PolicyTraits::element(slots_ + i));
|
1636
|
+
auto target = find_first_non_full(ctrl_, hash, capacity_);
|
1637
|
+
size_t new_i = target.offset;
|
1638
|
+
total_probe_length += target.probe_length;
|
1639
|
+
|
1640
|
+
// Verify if the old and new i fall within the same group wrt the hash.
|
1641
|
+
// If they do, we don't need to move the object as it falls already in the
|
1642
|
+
// best probe we can.
|
1643
|
+
const auto probe_index = [&](size_t pos) {
|
1644
|
+
return ((pos - probe(ctrl_, hash, capacity_).offset()) & capacity_) /
|
1645
|
+
Group::kWidth;
|
1646
|
+
};
|
1647
|
+
|
1648
|
+
// Element doesn't move.
|
1649
|
+
if (ABSL_PREDICT_TRUE(probe_index(new_i) == probe_index(i))) {
|
1650
|
+
set_ctrl(i, H2(hash));
|
1651
|
+
continue;
|
1652
|
+
}
|
1653
|
+
if (IsEmpty(ctrl_[new_i])) {
|
1654
|
+
// Transfer element to the empty spot.
|
1655
|
+
// set_ctrl poisons/unpoisons the slots so we have to call it at the
|
1656
|
+
// right time.
|
1657
|
+
set_ctrl(new_i, H2(hash));
|
1658
|
+
PolicyTraits::transfer(&alloc_ref(), slots_ + new_i, slots_ + i);
|
1659
|
+
set_ctrl(i, kEmpty);
|
1660
|
+
} else {
|
1661
|
+
assert(IsDeleted(ctrl_[new_i]));
|
1662
|
+
set_ctrl(new_i, H2(hash));
|
1663
|
+
// Until we are done rehashing, DELETED marks previously FULL slots.
|
1664
|
+
// Swap i and new_i elements.
|
1665
|
+
PolicyTraits::transfer(&alloc_ref(), slot, slots_ + i);
|
1666
|
+
PolicyTraits::transfer(&alloc_ref(), slots_ + i, slots_ + new_i);
|
1667
|
+
PolicyTraits::transfer(&alloc_ref(), slots_ + new_i, slot);
|
1668
|
+
--i; // repeat
|
1669
|
+
}
|
1670
|
+
}
|
1671
|
+
reset_growth_left();
|
1672
|
+
infoz().RecordRehash(total_probe_length);
|
1673
|
+
}
|
1674
|
+
|
1675
|
+
void rehash_and_grow_if_necessary() {
|
1676
|
+
if (capacity_ == 0) {
|
1677
|
+
resize(1);
|
1678
|
+
} else if (size() <= CapacityToGrowth(capacity()) / 2) {
|
1679
|
+
// Squash DELETED without growing if there is enough capacity.
|
1680
|
+
drop_deletes_without_resize();
|
1681
|
+
} else {
|
1682
|
+
// Otherwise grow the container.
|
1683
|
+
resize(capacity_ * 2 + 1);
|
1684
|
+
}
|
1685
|
+
}
|
1686
|
+
|
1687
|
+
bool has_element(const value_type& elem) const {
|
1688
|
+
size_t hash = PolicyTraits::apply(HashElement{hash_ref()}, elem);
|
1689
|
+
auto seq = probe(ctrl_, hash, capacity_);
|
1690
|
+
while (true) {
|
1691
|
+
Group g{ctrl_ + seq.offset()};
|
1692
|
+
for (int i : g.Match(H2(hash))) {
|
1693
|
+
if (ABSL_PREDICT_TRUE(PolicyTraits::element(slots_ + seq.offset(i)) ==
|
1694
|
+
elem))
|
1695
|
+
return true;
|
1696
|
+
}
|
1697
|
+
if (ABSL_PREDICT_TRUE(g.MatchEmpty())) return false;
|
1698
|
+
seq.next();
|
1699
|
+
assert(seq.index() < capacity_ && "full table!");
|
1700
|
+
}
|
1701
|
+
return false;
|
1702
|
+
}
|
1703
|
+
|
1704
|
+
// TODO(alkis): Optimize this assuming *this and that don't overlap.
|
1705
|
+
raw_hash_set& move_assign(raw_hash_set&& that, std::true_type) {
|
1706
|
+
raw_hash_set tmp(std::move(that));
|
1707
|
+
swap(tmp);
|
1708
|
+
return *this;
|
1709
|
+
}
|
1710
|
+
raw_hash_set& move_assign(raw_hash_set&& that, std::false_type) {
|
1711
|
+
raw_hash_set tmp(std::move(that), alloc_ref());
|
1712
|
+
swap(tmp);
|
1713
|
+
return *this;
|
1714
|
+
}
|
1715
|
+
|
1716
|
+
protected:
|
1717
|
+
template <class K>
|
1718
|
+
std::pair<size_t, bool> find_or_prepare_insert(const K& key) {
|
1719
|
+
auto hash = hash_ref()(key);
|
1720
|
+
auto seq = probe(ctrl_, hash, capacity_);
|
1721
|
+
while (true) {
|
1722
|
+
Group g{ctrl_ + seq.offset()};
|
1723
|
+
for (int i : g.Match(H2(hash))) {
|
1724
|
+
if (ABSL_PREDICT_TRUE(PolicyTraits::apply(
|
1725
|
+
EqualElement<K>{key, eq_ref()},
|
1726
|
+
PolicyTraits::element(slots_ + seq.offset(i)))))
|
1727
|
+
return {seq.offset(i), false};
|
1728
|
+
}
|
1729
|
+
if (ABSL_PREDICT_TRUE(g.MatchEmpty())) break;
|
1730
|
+
seq.next();
|
1731
|
+
assert(seq.index() < capacity_ && "full table!");
|
1732
|
+
}
|
1733
|
+
return {prepare_insert(hash), true};
|
1734
|
+
}
|
1735
|
+
|
1736
|
+
size_t prepare_insert(size_t hash) ABSL_ATTRIBUTE_NOINLINE {
|
1737
|
+
auto target = find_first_non_full(ctrl_, hash, capacity_);
|
1738
|
+
if (ABSL_PREDICT_FALSE(growth_left() == 0 &&
|
1739
|
+
!IsDeleted(ctrl_[target.offset]))) {
|
1740
|
+
rehash_and_grow_if_necessary();
|
1741
|
+
target = find_first_non_full(ctrl_, hash, capacity_);
|
1742
|
+
}
|
1743
|
+
++size_;
|
1744
|
+
growth_left() -= IsEmpty(ctrl_[target.offset]);
|
1745
|
+
set_ctrl(target.offset, H2(hash));
|
1746
|
+
infoz().RecordInsert(hash, target.probe_length);
|
1747
|
+
return target.offset;
|
1748
|
+
}
|
1749
|
+
|
1750
|
+
// Constructs the value in the space pointed by the iterator. This only works
|
1751
|
+
// after an unsuccessful find_or_prepare_insert() and before any other
|
1752
|
+
// modifications happen in the raw_hash_set.
|
1753
|
+
//
|
1754
|
+
// PRECONDITION: i is an index returned from find_or_prepare_insert(k), where
|
1755
|
+
// k is the key decomposed from `forward<Args>(args)...`, and the bool
|
1756
|
+
// returned by find_or_prepare_insert(k) was true.
|
1757
|
+
// POSTCONDITION: *m.iterator_at(i) == value_type(forward<Args>(args)...).
|
1758
|
+
template <class... Args>
|
1759
|
+
void emplace_at(size_t i, Args&&... args) {
|
1760
|
+
PolicyTraits::construct(&alloc_ref(), slots_ + i,
|
1761
|
+
std::forward<Args>(args)...);
|
1762
|
+
|
1763
|
+
assert(PolicyTraits::apply(FindElement{*this}, *iterator_at(i)) ==
|
1764
|
+
iterator_at(i) &&
|
1765
|
+
"constructed value does not match the lookup key");
|
1766
|
+
}
|
1767
|
+
|
1768
|
+
iterator iterator_at(size_t i) { return {ctrl_ + i, slots_ + i}; }
|
1769
|
+
const_iterator iterator_at(size_t i) const { return {ctrl_ + i, slots_ + i}; }
|
1770
|
+
|
1771
|
+
private:
|
1772
|
+
friend struct RawHashSetTestOnlyAccess;
|
1773
|
+
|
1774
|
+
// Reset all ctrl bytes back to kEmpty, except the sentinel.
|
1775
|
+
void reset_ctrl() {
|
1776
|
+
std::memset(ctrl_, kEmpty, capacity_ + Group::kWidth);
|
1777
|
+
ctrl_[capacity_] = kSentinel;
|
1778
|
+
SanitizerPoisonMemoryRegion(slots_, sizeof(slot_type) * capacity_);
|
1779
|
+
}
|
1780
|
+
|
1781
|
+
void reset_growth_left() {
|
1782
|
+
growth_left() = CapacityToGrowth(capacity()) - size_;
|
1783
|
+
}
|
1784
|
+
|
1785
|
+
// Sets the control byte, and if `i < Group::kWidth`, set the cloned byte at
|
1786
|
+
// the end too.
|
1787
|
+
void set_ctrl(size_t i, ctrl_t h) {
|
1788
|
+
assert(i < capacity_);
|
1789
|
+
|
1790
|
+
if (IsFull(h)) {
|
1791
|
+
SanitizerUnpoisonObject(slots_ + i);
|
1792
|
+
} else {
|
1793
|
+
SanitizerPoisonObject(slots_ + i);
|
1794
|
+
}
|
1795
|
+
|
1796
|
+
ctrl_[i] = h;
|
1797
|
+
ctrl_[((i - Group::kWidth) & capacity_) + 1 +
|
1798
|
+
((Group::kWidth - 1) & capacity_)] = h;
|
1799
|
+
}
|
1800
|
+
|
1801
|
+
size_t& growth_left() { return settings_.template get<0>(); }
|
1802
|
+
|
1803
|
+
HashtablezInfoHandle& infoz() { return settings_.template get<1>(); }
|
1804
|
+
|
1805
|
+
hasher& hash_ref() { return settings_.template get<2>(); }
|
1806
|
+
const hasher& hash_ref() const { return settings_.template get<2>(); }
|
1807
|
+
key_equal& eq_ref() { return settings_.template get<3>(); }
|
1808
|
+
const key_equal& eq_ref() const { return settings_.template get<3>(); }
|
1809
|
+
allocator_type& alloc_ref() { return settings_.template get<4>(); }
|
1810
|
+
const allocator_type& alloc_ref() const {
|
1811
|
+
return settings_.template get<4>();
|
1812
|
+
}
|
1813
|
+
|
1814
|
+
// TODO(alkis): Investigate removing some of these fields:
|
1815
|
+
// - ctrl/slots can be derived from each other
|
1816
|
+
// - size can be moved into the slot array
|
1817
|
+
ctrl_t* ctrl_ = EmptyGroup(); // [(capacity + 1) * ctrl_t]
|
1818
|
+
slot_type* slots_ = nullptr; // [capacity * slot_type]
|
1819
|
+
size_t size_ = 0; // number of full slots
|
1820
|
+
size_t capacity_ = 0; // total number of slots
|
1821
|
+
absl::container_internal::CompressedTuple<size_t /* growth_left */,
|
1822
|
+
HashtablezInfoHandle, hasher,
|
1823
|
+
key_equal, allocator_type>
|
1824
|
+
settings_{0, HashtablezInfoHandle{}, hasher{}, key_equal{},
|
1825
|
+
allocator_type{}};
|
1826
|
+
};
|
1827
|
+
|
1828
|
+
// Erases all elements that satisfy the predicate `pred` from the container `c`.
|
1829
|
+
template <typename P, typename H, typename E, typename A, typename Predicate>
|
1830
|
+
void EraseIf(Predicate pred, raw_hash_set<P, H, E, A>* c) {
|
1831
|
+
for (auto it = c->begin(), last = c->end(); it != last;) {
|
1832
|
+
auto copy_it = it++;
|
1833
|
+
if (pred(*copy_it)) {
|
1834
|
+
c->erase(copy_it);
|
1835
|
+
}
|
1836
|
+
}
|
1837
|
+
}
|
1838
|
+
|
1839
|
+
namespace hashtable_debug_internal {
|
1840
|
+
template <typename Set>
|
1841
|
+
struct HashtableDebugAccess<Set, absl::void_t<typename Set::raw_hash_set>> {
|
1842
|
+
using Traits = typename Set::PolicyTraits;
|
1843
|
+
using Slot = typename Traits::slot_type;
|
1844
|
+
|
1845
|
+
static size_t GetNumProbes(const Set& set,
|
1846
|
+
const typename Set::key_type& key) {
|
1847
|
+
size_t num_probes = 0;
|
1848
|
+
size_t hash = set.hash_ref()(key);
|
1849
|
+
auto seq = probe(set.ctrl_, hash, set.capacity_);
|
1850
|
+
while (true) {
|
1851
|
+
container_internal::Group g{set.ctrl_ + seq.offset()};
|
1852
|
+
for (int i : g.Match(container_internal::H2(hash))) {
|
1853
|
+
if (Traits::apply(
|
1854
|
+
typename Set::template EqualElement<typename Set::key_type>{
|
1855
|
+
key, set.eq_ref()},
|
1856
|
+
Traits::element(set.slots_ + seq.offset(i))))
|
1857
|
+
return num_probes;
|
1858
|
+
++num_probes;
|
1859
|
+
}
|
1860
|
+
if (g.MatchEmpty()) return num_probes;
|
1861
|
+
seq.next();
|
1862
|
+
++num_probes;
|
1863
|
+
}
|
1864
|
+
}
|
1865
|
+
|
1866
|
+
static size_t AllocatedByteSize(const Set& c) {
|
1867
|
+
size_t capacity = c.capacity_;
|
1868
|
+
if (capacity == 0) return 0;
|
1869
|
+
auto layout = Set::MakeLayout(capacity);
|
1870
|
+
size_t m = layout.AllocSize();
|
1871
|
+
|
1872
|
+
size_t per_slot = Traits::space_used(static_cast<const Slot*>(nullptr));
|
1873
|
+
if (per_slot != ~size_t{}) {
|
1874
|
+
m += per_slot * c.size();
|
1875
|
+
} else {
|
1876
|
+
for (size_t i = 0; i != capacity; ++i) {
|
1877
|
+
if (container_internal::IsFull(c.ctrl_[i])) {
|
1878
|
+
m += Traits::space_used(c.slots_ + i);
|
1879
|
+
}
|
1880
|
+
}
|
1881
|
+
}
|
1882
|
+
return m;
|
1883
|
+
}
|
1884
|
+
|
1885
|
+
static size_t LowerBoundAllocatedByteSize(size_t size) {
|
1886
|
+
size_t capacity = GrowthToLowerboundCapacity(size);
|
1887
|
+
if (capacity == 0) return 0;
|
1888
|
+
auto layout = Set::MakeLayout(NormalizeCapacity(capacity));
|
1889
|
+
size_t m = layout.AllocSize();
|
1890
|
+
size_t per_slot = Traits::space_used(static_cast<const Slot*>(nullptr));
|
1891
|
+
if (per_slot != ~size_t{}) {
|
1892
|
+
m += per_slot * size;
|
1893
|
+
}
|
1894
|
+
return m;
|
1895
|
+
}
|
1896
|
+
};
|
1897
|
+
|
1898
|
+
} // namespace hashtable_debug_internal
|
1899
|
+
} // namespace container_internal
|
1900
|
+
ABSL_NAMESPACE_END
|
1901
|
+
} // namespace absl
|
1902
|
+
|
1903
|
+
#endif // ABSL_CONTAINER_INTERNAL_RAW_HASH_SET_H_
|