Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
604
int 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
613
size_t GetGlobalLen(int block_type) {
Callers
2
TEST_F
Function · 0.85
AllocAndDealloc
Function · 0.85
Calls
1
GetRegion
Function · 0.85
Tested by
2
TEST_F
Function · 0.68
AllocAndDealloc
Function · 0.68