Coverage for /Syzygy/msf/msf_constants.h

CoverageLines executed / instrumented / missingexe / inst / missLanguageGroup
0.0%006.C++source

Line-by-line coverage:

   1    :  // Copyright 2015 Google Inc. All Rights Reserved.
   2    :  //
   3    :  // Licensed under the Apache License, Version 2.0 (the "License");
   4    :  // you may not use this file except in compliance with the License.
   5    :  // You may obtain a copy of the License at
   6    :  //
   7    :  //     http://www.apache.org/licenses/LICENSE-2.0
   8    :  //
   9    :  // Unless required by applicable law or agreed to in writing, software
  10    :  // distributed under the License is distributed on an "AS IS" BASIS,
  11    :  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12    :  // See the License for the specific language governing permissions and
  13    :  // limitations under the License.
  14    :  #ifndef SYZYGY_MSF_MSF_CONSTANTS_H_
  15    :  #define SYZYGY_MSF_MSF_CONSTANTS_H_
  16    :  
  17    :  #include <stdint.h>
  18    :  
  19  m :  namespace msf {
  20    :  
  21    :  // This is the magic value found at the start of all MSF v7.00 files.
  22  m :  const size_t kMsfHeaderMagicStringSize = 32;
  23  m :  extern const uint8_t kMsfHeaderMagicString[kMsfHeaderMagicStringSize];
  24    :  
  25    :  // The maximum number of root pages in the Multi-Stream Format (MSF) header.
  26    :  // See http://code.google.com/p/pdbparser/wiki/MSF_Format
  27  m :  const uint32_t kMsfMaxDirPages = 73;
  28    :  
  29    :  // We typically see 1024-byte page sizes generated by the MSVS linker, but this
  30    :  // in turn has a maximum file size of 1GB. The compiler generates PDBs with
  31    :  // 4KB page sizes which has a maximum file size of 2GB. Presumably this could be
  32    :  // any power of 2 in size, but we've only ever seen 1024 and 4096. This is
  33    :  // found in bytes 32 through 35 (little endian) of any PDB file. We use 4KB
  34    :  // pages so that we can handle PDBs up to 2GB without problems (we regularly
  35    :  // exceed 1GB when dealing with Chrome).
  36  m :  const uint32_t kMsfPageSize = 4096;
  37    :  
  38  m :  }  // namespace msf
  39    :  
  40    :  #endif  // SYZYGY_MSF_MSF_CONSTANTS_H_

Coverage information generated Fri Jul 29 11:00:21 2016.