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.
4
5#include "net/disk_cache/simple/simple_entry_format.h"
6
7#include <cstring>
8
9namespace disk_cache {
10
11SimpleFileHeader::SimpleFileHeader() {
12  // Make hashing repeatable: leave no padding bytes untouched.
13  std::memset(this, 0, sizeof(*this));
14}
15
16SimpleFileEOF::SimpleFileEOF() {
17  // Make hashing repeatable: leave no padding bytes untouched.
18  std::memset(this, 0, sizeof(*this));
19}
20
21SimpleFileSparseRangeHeader::SimpleFileSparseRangeHeader() {
22  // Make hashing repeatable: leave no padding bytes untouched.
23  std::memset(this, 0, sizeof(*this));
24}
25
26}  // namespace disk_cache
27