MCPcopy Create free account
hub / github.com/apache/trafficserver / firstBlockFor

Method firstBlockFor

plugins/slice/Range.cc:145–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145int64_t
146Range::firstBlockFor(int64_t const blocksize) const
147{
148 if (0 < blocksize && isValid()) {
149 return std::max(static_cast<int64_t>(0), m_beg / blocksize);
150 } else {
151 return -1;
152 }
153}
154
155int64_t
156Range::lastBlockFor(int64_t const blocksize) const

Callers 5

handleFirstServerHeaderFunction · 0.80
handleNextServerHeaderFunction · 0.80
handle_server_respFunction · 0.80
request_blockFunction · 0.80
handle_client_reqFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected