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" | |
15 | 14 |
16 /** \class SkRBuffer | 15 /** \class SkRBuffer |
17 | 16 |
18 Light weight class for reading data from a memory block. | 17 Light weight class for reading data from a memory block. |
19 The RBuffer is given the buffer to read from, with either a specified size | 18 The RBuffer is given the buffer to read from, with either a specified size |
20 or no size (in which case no range checking is performed). It is iillegal | 19 or no size (in which case no range checking is performed). It is iillegal |
21 to attempt to read a value from an empty RBuffer (data == null). | 20 to attempt to read a value from an empty RBuffer (data == null). |
22 */ | 21 */ |
23 class SkRBuffer : SkNoncopyable { | 22 class SkRBuffer : SkNoncopyable { |
24 public: | 23 public: |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 | 161 |
163 private: | 162 private: |
164 void writeNoSizeCheck(const void* buffer, size_t size); | 163 void writeNoSizeCheck(const void* buffer, size_t size); |
165 | 164 |
166 char* fData; | 165 char* fData; |
167 char* fPos; | 166 char* fPos; |
168 char* fStop; | 167 char* fStop; |
169 }; | 168 }; |
170 | 169 |
171 #endif | 170 #endif |
OLD | NEW |