/src/spotify-json/src/decode_context.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * Copyright (c) 2014-2019 Spotify AB |
3 | | * |
4 | | * Licensed under the Apache License, Version 2.0 (the "License"); you may not |
5 | | * use this file except in compliance with the License. You may obtain a copy of |
6 | | * the License at |
7 | | * |
8 | | * http://www.apache.org/licenses/LICENSE-2.0 |
9 | | * |
10 | | * Unless required by applicable law or agreed to in writing, software |
11 | | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
12 | | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
13 | | * License for the specific language governing permissions and limitations under |
14 | | * the License. |
15 | | */ |
16 | | |
17 | | #include <spotify/json/decode_context.hpp> |
18 | | |
19 | | namespace spotify { |
20 | | namespace json { |
21 | | |
22 | | decode_context::decode_context(const char *begin, const char *end) |
23 | 2.35k | : has_sse42(detail::cpuid().has_sse42()), |
24 | 2.35k | position(begin), |
25 | 2.35k | begin(begin), |
26 | 2.35k | end(end) {} |
27 | | |
28 | | decode_context::decode_context(const char *data, size_t size) |
29 | 0 | : has_sse42(detail::cpuid().has_sse42()), |
30 | 0 | position(data), |
31 | 0 | begin(data), |
32 | 0 | end(data + size) {} |
33 | | |
34 | | } // namespace json |
35 | | } // namespace spotify |