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

Function status_size

src/butil/status.cpp:25–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace butil {
24
25inline size_t status_size(size_t message_size) {
26 // Add 1 because even if the sum of size is aligned with int, we need to
27 // put an ending '\0'
28 return ((offsetof(Status::State, message) + message_size)
29 / sizeof(int) + 1) * sizeof(int);
30}
31
32int Status::set_errorv(int c, const char* fmt, va_list args) {
33 if (0 == c) {

Callers 3

set_errorvMethod · 0.85
set_errorMethod · 0.85
copy_stateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected