1 : // Copyright 2012 Google Inc.
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 : //
15 : // This file allows reading the content of the symbol record table from a PDB
16 : // stream.
17 :
18 : #ifndef SYZYGY_PDB_PDB_SYMBOL_RECORD_H_
19 : #define SYZYGY_PDB_PDB_SYMBOL_RECORD_H_
20 :
21 : #include <vector>
22 :
23 : #include "base/basictypes.h"
24 : #include "syzygy/pdb/pdb_data_types.h"
25 :
26 m : namespace pdb {
27 :
28 : // Forward declarations.
29 m : class PdbStream;
30 :
31 : // Read a symbol record table from a Pbd stream.
32 : // @param stream The stream containing the table.
33 : // @param symbol_table_size The size of the symbol record table.
34 : // @param symbol_vector The vector where the symbol records should be stored.
35 : // @returns true on success, false otherwise.
36 m : bool ReadSymbolRecord(PdbStream* stream,
37 m : size_t symbol_table_size,
38 m : SymbolRecordVector* symbol_vector);
39 :
40 m : } // namespace pdb
41 :
42 : #endif // SYZYGY_PDB_PDB_SYMBOL_RECORD_H_
|