OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkBuffer_DEFINED | 10 #ifndef SkBuffer_DEFINED |
11 #define SkBuffer_DEFINED | 11 #define SkBuffer_DEFINED |
12 | 12 |
13 #include "SkScalar.h" | 13 #include "SkScalar.h" |
| 14 #include "SkTypes.h" |
14 | 15 |
15 /** \class SkRBuffer | 16 /** \class SkRBuffer |
16 | 17 |
17 Light weight class for reading data from a memory block. | 18 Light weight class for reading data from a memory block. |
18 The RBuffer is given the buffer to read from, with either a specified size | 19 The RBuffer is given the buffer to read from, with either a specified size |
19 or no size (in which case no range checking is performed). It is iillegal | 20 or no size (in which case no range checking is performed). It is iillegal |
20 to attempt to read a value from an empty RBuffer (data == null). | 21 to attempt to read a value from an empty RBuffer (data == null). |
21 */ | 22 */ |
22 class SkRBuffer : SkNoncopyable { | 23 class SkRBuffer : SkNoncopyable { |
23 public: | 24 public: |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 162 |
162 private: | 163 private: |
163 void writeNoSizeCheck(const void* buffer, size_t size); | 164 void writeNoSizeCheck(const void* buffer, size_t size); |
164 | 165 |
165 char* fData; | 166 char* fData; |
166 char* fPos; | 167 char* fPos; |
167 char* fStop; | 168 char* fStop; |
168 }; | 169 }; |
169 | 170 |
170 #endif | 171 #endif |
OLD | NEW |