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

Function GetBlockType

src/brpc/rdma/block_pool.cpp:604–610  ·  view source on GitHub ↗

Just for UT

Source from the content-addressed store, hash-verified

602
603// Just for UT
604int GetBlockType(void* buf) {
605 Region* r = GetRegion(buf);
606 if (!r) {
607 return -1;
608 }
609 return r->block_type;
610}
611
612// Just for UT
613size_t GetGlobalLen(int block_type) {

Callers 2

TEST_FFunction · 0.85
AllocAndDeallocFunction · 0.85

Calls 1

GetRegionFunction · 0.85

Tested by 2

TEST_FFunction · 0.68
AllocAndDeallocFunction · 0.68