MCPcopy Create free account
hub / github.com/apache/brpc / backing_block

Method backing_block

src/butil/iobuf.cpp:1409–1415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1407}
1408
1409StringPiece IOBuf::backing_block(size_t i) const {
1410 if (i < _ref_num()) {
1411 const BlockRef& r = _ref_at(i);
1412 return StringPiece(r.block->data + r.offset, r.length);
1413 }
1414 return StringPiece();
1415}
1416
1417bool IOBuf::equals(const butil::IOBuf& other) const {
1418 const size_t sz1 = size();

Callers 8

TEST_FFunction · 0.80
OnDataMethod · 0.80
SetBodyReaderMethod · 0.80
ParseFromIOBufMethod · 0.80
try_next_blockMethod · 0.80
iobuf.cppFile · 0.80
PrintIOBufFunction · 0.80

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.64