1 | /* Copyright 2015 The TensorFlow Authors. 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 | |
16 | // Endian-neutral encoding: |
17 | // * Fixed-length numbers are encoded with least-significant byte first |
18 | // * In addition we support variable length "varint" encoding |
19 | // * Strings are encoded prefixed by their length in varint format |
20 | |
21 | #ifndef TENSORFLOW_CORE_PLATFORM_CODING_H_ |
22 | #define TENSORFLOW_CORE_PLATFORM_CODING_H_ |
23 | |
24 | #include "tensorflow/core/platform/raw_coding.h" |
25 | #include "tensorflow/core/platform/stringpiece.h" |
26 | #include "tensorflow/core/platform/types.h" |
27 | #include "tensorflow/tsl/platform/coding.h" |
28 | |
29 | namespace tensorflow { |
30 | namespace core { |
31 | // NOLINTBEGIN(misc-unused-using-decls) |
32 | using tsl::core::EncodeFixed16; |
33 | using tsl::core::EncodeFixed32; |
34 | using tsl::core::EncodeFixed64; |
35 | using tsl::core::EncodeVarint32; |
36 | using tsl::core::EncodeVarint64; |
37 | using tsl::core::GetVarint32; |
38 | using tsl::core::GetVarint32Ptr; |
39 | using tsl::core::GetVarint32PtrFallback; |
40 | using tsl::core::GetVarint64; |
41 | using tsl::core::GetVarint64Ptr; |
42 | using tsl::core::kMaxVarint32Bytes; |
43 | using tsl::core::kMaxVarint64Bytes; |
44 | using tsl::core::PutFixed16; |
45 | using tsl::core::PutFixed32; |
46 | using tsl::core::PutFixed64; |
47 | using tsl::core::PutVarint32; |
48 | using tsl::core::PutVarint64; |
49 | using tsl::core::VarintLength; |
50 | // NOLINTEND(misc-unused-using-decls) |
51 | } // namespace core |
52 | } // namespace tensorflow |
53 | |
54 | #endif // TENSORFLOW_CORE_PLATFORM_CODING_H_ |
55 | |