Home
last modified time | relevance | path

Searched refs:base (Results 1 – 25 of 70) sorted by relevance

123

/trafficserver/iocore/cache/test/
H A Dtest_RWW.cc102 base->do_io_write(); in process_write_event()
107 base->reenable(); in process_write_event()
120 base->reenable(); in process_write_event()
144 base->do_io_read(); in process_read_event()
170 REQUIRE(base != nullptr); in handle_cache_event()
210 base->do_io_write(); in process_write_event()
215 base->reenable(); in process_write_event()
231 base->reenable(); in process_write_event()
258 base->do_io_read(); in process_read_event()
327 base->reenable(); in process_write_event()
[all …]
H A DCacheTestHandler.cc38 CacheTestHandler::handle_cache_event(int event, CacheTestBase *base) in handle_cache_event() argument
40 REQUIRE(base != nullptr); in handle_cache_event()
43 base->do_io_read(); in handle_cache_event()
46 base->do_io_write(); in handle_cache_event()
50 REQUIRE(base->vc != nullptr); in handle_cache_event()
51 REQUIRE(base->vio != nullptr); in handle_cache_event()
52 base->reenable(); in handle_cache_event()
56 base->close(); in handle_cache_event()
59 base->close(); in handle_cache_event()
64 base->close(); in handle_cache_event()
H A Dtest_Update_header.cc59 base->do_io_read(); in handle_cache_event()
60 this->validate_content_type(base); in handle_cache_event()
61 this->check_fragment_table(base); in handle_cache_event()
64 base->reenable(); in handle_cache_event()
67 base->close(); in handle_cache_event()
77 validate_content_type(CacheTestBase *base) in validate_content_type() argument
79 auto rt = dynamic_cast<CacheReadTest *>(base); in validate_content_type()
89 check_fragment_table(CacheTestBase *base) in check_fragment_table() argument
131 base->do_io_write(); in handle_cache_event()
138 base->do_io_read(); in handle_cache_event()
[all …]
H A Dtest_Alternate_L_to_S.cc53 base->do_io_read(); in handle_cache_event()
54 validate_content_type(base); in handle_cache_event()
57 base->reenable(); in handle_cache_event()
60 base->close(); in handle_cache_event()
70 validate_content_type(CacheTestBase *base) in validate_content_type() argument
121 base->do_io_write(); in handle_cache_event()
124 base->reenable(); in handle_cache_event()
132 base->do_io_read(); in handle_cache_event()
133 validate_content_type(base); in handle_cache_event()
136 base->reenable(); in handle_cache_event()
[all …]
H A Dtest_Alternate_S_to_L.cc53 base->do_io_read(); in handle_cache_event()
54 validate_content_type(base); in handle_cache_event()
57 base->reenable(); in handle_cache_event()
60 base->close(); in handle_cache_event()
70 validate_content_type(CacheTestBase *base) in validate_content_type() argument
121 base->do_io_write(); in handle_cache_event()
124 base->reenable(); in handle_cache_event()
132 base->do_io_read(); in handle_cache_event()
133 validate_content_type(base); in handle_cache_event()
136 base->reenable(); in handle_cache_event()
[all …]
H A Dtest_Alternate_S_to_L_remove_S.cc64 base->do_io_read(); in handle_cache_event()
65 validate_content_type(base); in handle_cache_event()
68 base->reenable(); in handle_cache_event()
71 base->close(); in handle_cache_event()
177 base->do_io_write(); in handle_cache_event()
180 base->reenable(); in handle_cache_event()
190 base->do_io_read(); in handle_cache_event()
191 validate_content_type(base); in handle_cache_event()
194 base->reenable(); in handle_cache_event()
197 delete_earliest_dir(base->vc); in handle_cache_event()
[all …]
H A Dtest_Alternate_L_to_S_remove_L.cc64 base->do_io_read(); in handle_cache_event()
65 validate_content_type(base); in handle_cache_event()
68 base->reenable(); in handle_cache_event()
71 base->close(); in handle_cache_event()
177 base->do_io_write(); in handle_cache_event()
180 base->reenable(); in handle_cache_event()
188 base->do_io_read(); in handle_cache_event()
189 validate_content_type(base); in handle_cache_event()
192 base->reenable(); in handle_cache_event()
195 delete_earliest_dir(base->vc); in handle_cache_event()
[all …]
H A Dtest_Alternate_L_to_S_remove_S.cc57 base->do_io_read(); in handle_cache_event()
58 validate_content_type(base); in handle_cache_event()
61 base->reenable(); in handle_cache_event()
64 base->close(); in handle_cache_event()
178 base->do_io_write(); in handle_cache_event()
181 base->reenable(); in handle_cache_event()
189 base->do_io_read(); in handle_cache_event()
190 validate_content_type(base); in handle_cache_event()
193 base->reenable(); in handle_cache_event()
196 delete_earliest_dir(base->vc); in handle_cache_event()
[all …]
H A Dtest_Alternate_S_to_L_remove_L.cc57 base->do_io_read(); in handle_cache_event()
58 validate_content_type(base); in handle_cache_event()
61 base->reenable(); in handle_cache_event()
64 base->close(); in handle_cache_event()
179 base->do_io_write(); in handle_cache_event()
182 base->reenable(); in handle_cache_event()
192 base->do_io_read(); in handle_cache_event()
193 validate_content_type(base); in handle_cache_event()
196 base->reenable(); in handle_cache_event()
199 delete_earliest_dir(base->vc); in handle_cache_event()
[all …]
H A Dtest_Update_L_to_S.cc49 handle_cache_event(int event, CacheTestBase *base) override in handle_cache_event() argument
53 base->do_io_read(); in handle_cache_event()
56 base->reenable(); in handle_cache_event()
59 base->close(); in handle_cache_event()
92 handle_cache_event(int event, CacheTestBase *base) override in handle_cache_event() argument
97 base->do_io_write(); in handle_cache_event()
100 base->reenable(); in handle_cache_event()
108 base->do_io_read(); in handle_cache_event()
109 wt->old_info.copy(static_cast<HTTPInfo *>(&base->vc->alternate)); in handle_cache_event()
112 base->reenable(); in handle_cache_event()
H A Dtest_Update_S_to_L.cc49 handle_cache_event(int event, CacheTestBase *base) override in handle_cache_event() argument
53 base->do_io_read(); in handle_cache_event()
56 base->reenable(); in handle_cache_event()
59 base->close(); in handle_cache_event()
92 handle_cache_event(int event, CacheTestBase *base) override in handle_cache_event() argument
97 base->do_io_write(); in handle_cache_event()
100 base->reenable(); in handle_cache_event()
108 base->do_io_read(); in handle_cache_event()
109 wt->old_info.copy(static_cast<HTTPInfo *>(&base->vc->alternate)); in handle_cache_event()
112 base->reenable(); in handle_cache_event()
H A Dstub.cc93 ts::svtoi(TextView src, TextView *out, int base) in svtoi() argument
100 if (!(0 <= base && base <= 36)) { in svtoi()
112 if (0 == base) { in svtoi()
113 base = 10; in svtoi()
116 base = 8; in svtoi()
119 base = 16; in svtoi()
125 switch (base) { in svtoi()
136 … while (src.size() && (0 <= (v = svtoi_convert[static_cast<unsigned char>(*src)])) && v < base) { in svtoi()
137 auto n = zret * base + v; in svtoi()
/trafficserver/src/tscpp/util/
H A DTextView.cc94 ts::svtoi(TextView src, TextView *out, int base) in svtoi() argument
101 if (!(0 <= base && base <= 36)) { in svtoi()
113 if (0 == base) { in svtoi()
114 base = 10; in svtoi()
117 base = 8; in svtoi()
120 base = 16; in svtoi()
126 switch (base) { in svtoi()
137 … while (src.size() && (0 <= (v = svtoi_convert[static_cast<unsigned char>(*src)])) && v < base) { in svtoi()
138 auto n = zret * base + v; in svtoi()
/trafficserver/include/tscore/
H A DI_Version.h98 constexpr ModuleVersion(ModuleVersion const &base, Type type);
117 inline constexpr ModuleVersion::ModuleVersion(ModuleVersion const &base, ts::ModuleVersion::Type ty… in ModuleVersion() argument
118 : _type(type), _major(base._major), _minor(base._minor) in ModuleVersion()
H A DMemArena.h252 const char *base = this->data(); in contains() local
253 return base <= ptr && ptr < base + size; in contains()
/trafficserver/src/tscore/
H A Dmkdfa.c398 checkbase(state_t *state, int base) in checkbase() argument
404 if (checktbl[base + map[transitions->value]] != -1) in checkbase()
416 int base; in mktranstables() local
418 base = 0; in mktranstables()
419 while (base < state_count) { in mktranstables()
420 if (checkbase(state, base)) in mktranstables()
422 base += 1; in mktranstables()
425 assert(base < state_count); in mktranstables()
427 basetbl[state->num] = base; in mktranstables()
H A DSourceLocation.cc63 ts::TextView base{ts::TextView{file, strlen(file)}.take_suffix_at('/')}; in print() local
64 w.print("{}:{}{}", base, line, ts::bwf::OptionalAffix(func, ")"_sv, " ("_sv)); in print()
H A DBufferWriterFormat.cc240 …char *base = w.auxBuffer(); // should be first byte of @a lw e.g. lw.data() - avoid const… in Do_Alignment() local
241 char *limit = base + lw.capacity(); // first invalid byte. in Do_Alignment()
247 dst = base + delta; // move existing content to here. in Do_Alignment()
253 std::memmove(dst, base, last - dst); in Do_Alignment()
255 dst = base; in Do_Alignment()
256 last = base + delta; in Do_Alignment()
267 dst = base + d2; // move existing content to here. in Do_Alignment()
273 std::memmove(dst, base, last - dst); // move content. in Do_Alignment()
276 dst = base; in Do_Alignment()
277 last = base + d2; in Do_Alignment()
[all …]
/trafficserver/plugins/lua/
H A Dts_lua_package.c161 int i, base; in ts_lua_add_package_path_items() local
166 base = lua_gettop(L); in ts_lua_add_package_path_items()
199 lua_settop(L, base); in ts_lua_add_package_path_items()
307 int i, base; in ts_lua_add_package_cpath_items() local
312 base = lua_gettop(L); in ts_lua_add_package_cpath_items()
345 lua_settop(L, base); in ts_lua_add_package_cpath_items()
/trafficserver/iocore/net/quic/
H A DQUICPacket.cc96 new (long_header) QUICPacketLongHeader(from, to, std::move(buf), len, base); in load()
100 new (short_header) QUICPacketShortHeader(from, to, std::move(buf), len, base); in load()
169 QUICPacketNumber base) in QUICPacketLongHeader() argument
170 : QUICPacketHeader(from, to, std::move(buf), len, base) in QUICPacketLongHeader()
637 QUICPacketNumber base) in QUICPacketShortHeader() argument
638 : QUICPacketHeader(from, to, std::move(buf), len, base) in QUICPacketShortHeader()
956 QUICPacket::calc_packet_number_len(QUICPacketNumber num, QUICPacketNumber base) in calc_packet_number_len() argument
958 uint64_t d = (num - base) * 2; in calc_packet_number_len()
1022 QUICPacketNumber base = largest_acked & (~(maximum_diff - 1)); in decode_packet_number() local
1023 QUICPacketNumber candidate1 = base + src; in decode_packet_number()
[all …]
H A DQUICPacket.h58 …om, const IpEndpoint to, ats_unique_buf buf, size_t len, QUICPacketNumber base) in QUICPacketHeader() argument
59 : _from(from), _to(to), _buf(std::move(buf)), _buf_len(len), _base_packet_number(base) in QUICPacketHeader()
126 QUICPacketNumber base);
214 …om, const IpEndpoint to, ats_unique_buf buf, size_t len, QUICPacketNumber base);
267 …om, const IpEndpoint to, ats_unique_buf buf, size_t len, QUICPacketNumber base);
386 static uint8_t calc_packet_number_len(QUICPacketNumber num, QUICPacketNumber base);
/trafficserver/iocore/net/quic/test/
H A Dtest_QUICPacket.cc333 QUICPacketNumber base = 0xabe8bc; variable
335 CHECK(QUICPacket::calc_packet_number_len(0xace8fe, base) == 3);
352 QUICPacketNumber base = 0xaa82f30e; variable
354 QUICPacket::decode_packet_number(dst, src, len, base);
/trafficserver/src/tscpp/util/unit_tests/
H A Dtest_TextView.cc37 static std::string base = "Evil Dave Rulez!"; variable
38 TextView tv(base);
39 TextView b{base.data(), base.size()};
40 TextView c{std::string_view(base)};
/trafficserver/lib/yamlcpp/test/
H A Dcreate-emitter-tests.py140 base = list(events)
141 for i in range(0, len(base)+1):
142 cpy = list(base)
/trafficserver/proxy/hdrs/
H A DURL.cc1231 base = cur; in url_parse_internet()
1274 user.set(base, last_colon); in url_parse_internet()
1279 user.set(base, cur); in url_parse_internet()
1282 base = cur; in url_parse_internet()
1312 host.set(base, last_colon); in url_parse_internet()
1314 host.set(base, cur); in url_parse_internet()
1468 const char *base = cur; in url_parse_http_no_path_component_breakdown() local
1478 if (base != host_end) { in url_parse_http_no_path_component_breakdown()
1486 if (port_limit < base) { in url_parse_http_no_path_component_breakdown()
1496 if (port >= base && ':' == *port) { in url_parse_http_no_path_component_breakdown()
[all …]

Completed in 113 milliseconds

123