| 346 | } |
| 347 | |
| 348 | void 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 | |
| 354 | void DigestBlock::Generate() { |
| 355 | _offset_data = butil::fast_rand() & 0xFFFFFFFF; |
no test coverage detected