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

Method SaveWithoutDigest

src/brpc/policy/rtmp_protocol.cpp:381–387  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379}
380
381void DigestBlock::SaveWithoutDigest(void* buf) const {
382 char* p = static_cast<char*>(buf);
383 WriteBigEndian4Bytes(&p, _offset_data);
384 memcpy(p, random0(), random0_size());
385 p += random0_size();
386 memcpy(p, random1(), random1_size());
387}
388
389bool C1S1Base::Save(void* buf) const {
390 char* p = static_cast<char*>(buf);

Callers 1

ComputeDigestBaseMethod · 0.80

Calls 1

WriteBigEndian4BytesFunction · 0.85

Tested by

no test coverage detected