OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
4 * | 3 * |
5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 | 7 |
9 | 8 |
10 #ifndef SkKTXFile_DEFINED | 9 #ifndef SkKTXFile_DEFINED |
11 #define SkKTXFile_DEFINED | 10 #define SkKTXFile_DEFINED |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 // If the endianness of the platform is different than the file, | 135 // If the endianness of the platform is different than the file, |
137 // then we need to do proper byte swapping. | 136 // then we need to do proper byte swapping. |
138 bool fSwapBytes; | 137 bool fSwapBytes; |
139 | 138 |
140 // Read an integer from a buffer, advance the buffer, and swap | 139 // Read an integer from a buffer, advance the buffer, and swap |
141 // bytes if fSwapBytes is set | 140 // bytes if fSwapBytes is set |
142 uint32_t readInt(const uint8_t** buf, size_t* bytesLeft) const; | 141 uint32_t readInt(const uint8_t** buf, size_t* bytesLeft) const; |
143 }; | 142 }; |
144 | 143 |
145 #endif // SkKTXFile_DEFINED | 144 #endif // SkKTXFile_DEFINED |
OLD | NEW |