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

Method blockIsInside

plugins/slice/Range.cc:171–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171bool
172Range::blockIsInside(int64_t const blocksize, int64_t const blocknum) const
173{
174 Range const blockrange(blocksize * blocknum, blocksize * (blocknum + 1));
175 Range const isec(blockrange.intersectedWith(*this));
176
177 return isec.isValid();
178}
179
180int64_t
181Range::skipBytesForBlock(int64_t const blocksize, int64_t const blocknum) const

Callers 2

handle_server_respFunction · 0.80
request_blockFunction · 0.80

Calls 2

intersectedWithMethod · 0.80
isValidMethod · 0.45

Tested by

no test coverage detected