1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "net/disk_cache/simple/simple_entry_format.h"
11 SimpleFileHeader::SimpleFileHeader() {
12 // Make hashing repeatable: leave no padding bytes untouched.
13 std::memset(this, 0, sizeof(*this));
16 SimpleFileEOF::SimpleFileEOF() {
17 // Make hashing repeatable: leave no padding bytes untouched.
18 std::memset(this, 0, sizeof(*this));
21 SimpleFileSparseRangeHeader::SimpleFileSparseRangeHeader() {
22 // Make hashing repeatable: leave no padding bytes untouched.
23 std::memset(this, 0, sizeof(*this));
26 } // namespace disk_cache