MCPcopy Create free account
hub / github.com/Tencent/phxqueue / UpdateCrc

Method UpdateCrc

phxqueue/store/storemeta.cpp:92–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92void StoreMeta::UpdateCrc(uint32_t pre_crc) {
93 if (!impl_->crc)
94 impl_->crc = crc32(pre_crc, (const unsigned char *)&impl_->cursor_id, sizeof(uint64_t));
95}
96
97uint32_t StoreMeta::GetCrc() const{
98 return impl_->crc;

Callers 1

PushBackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected