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

Method Save

src/brpc/policy/rtmp_protocol.cpp:348–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346}
347
348void KeyBlock::Save(void* buf) const {
349 memcpy(buf, _buf, SIZE - 4);
350 char* p = static_cast<char*>(buf) + SIZE - 4;
351 WriteBigEndian4Bytes(&p, _offset_data);
352}
353
354void DigestBlock::Generate() {
355 _offset_data = butil::fast_rand() & 0xFFFFFFFF;

Callers 4

ComputeDigestBaseMethod · 0.80
SendC0C1Function · 0.80
WaitForS0S1Method · 0.80

Calls 1

WriteBigEndian4BytesFunction · 0.85

Tested by

no test coverage detected