1 : // Copyright 2011 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 : //
15 : // Internal implementation details for msf_stream.h. Not meant to be included
16 : // directly.
17 :
18 : #ifndef SYZYGY_MSF_MSF_STREAM_IMPL_H_
19 : #define SYZYGY_MSF_MSF_STREAM_IMPL_H_
20 :
21 : #include <vector>
22 :
23 : #include "base/logging.h"
24 : #include "syzygy/msf/msf_decl.h"
25 :
26 : namespace msf {
27 : namespace detail {
28 :
29 : namespace {
30 :
31 : const size_t kInvalidLength = 0xFFFFFFFF;
32 :
33 : } // namespace
34 :
35 : template <MsfFileType T>
36 : MsfStreamImpl<T>::MsfStreamImpl(size_t length)
37 E : : length_(length == kInvalidLength ? 0 : length) {
38 E : }
39 :
40 : template <MsfFileType T>
41 E : MsfStreamImpl<T>::~MsfStreamImpl() {
42 E : }
43 :
44 : } // namespace detail
45 : } // namespace msf
46 :
47 : #endif // SYZYGY_MSF_MSF_STREAM_IMPL_H_
|