| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
| 3 * | 3 * |
| 4 * 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 |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkValidatingReadBuffer_DEFINED | 8 #ifndef SkValidatingReadBuffer_DEFINED |
| 9 #define SkValidatingReadBuffer_DEFINED | 9 #define SkValidatingReadBuffer_DEFINED |
| 10 | 10 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 | 68 |
| 69 private: | 69 private: |
| 70 bool readArray(void* value, size_t size, size_t elementSize); | 70 bool readArray(void* value, size_t size, size_t elementSize); |
| 71 | 71 |
| 72 void setMemory(const void* data, size_t size); | 72 void setMemory(const void* data, size_t size); |
| 73 | 73 |
| 74 static bool IsPtrAlign4(const void* ptr) { | 74 static bool IsPtrAlign4(const void* ptr) { |
| 75 return SkIsAlign4((uintptr_t)ptr); | 75 return SkIsAlign4((uintptr_t)ptr); |
| 76 } | 76 } |
| 77 | 77 |
| 78 SkReader32 fReader; | |
| 79 bool fError; | 78 bool fError; |
| 80 | 79 |
| 81 typedef SkReadBuffer INHERITED; | 80 typedef SkReadBuffer INHERITED; |
| 82 }; | 81 }; |
| 83 | 82 |
| 84 #endif // SkValidatingReadBuffer_DEFINED | 83 #endif // SkValidatingReadBuffer_DEFINED |
| OLD | NEW |