OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2010 Google Inc. | 2 * Copyright 2010 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 #include <Foundation/Foundation.h> | 8 #include <Foundation/Foundation.h> |
9 #include "SkOSFile.h" | 9 #include "SkOSFile.h" |
10 #include "SkString.h" | 10 #include "SkString.h" |
11 | 11 |
12 /* | |
tfarina
2014/06/11 19:12:11
why you do this?
| |
12 struct SkFILE { | 13 struct SkFILE { |
13 NSData* fData; | 14 NSData* fData; |
14 size_t fOffset; | 15 size_t fOffset; |
15 size_t fLength; | 16 size_t fLength; |
16 }; | 17 }; |
17 | 18 |
18 SkFILE* sk_fopen(const char cpath[], SkFILE_Flags flags) { | 19 SkFILE* sk_fopen(const char cpath[], SkFILE_Flags flags) { |
19 if (flags & kWrite_SkFILE_Flag) { | 20 if (flags & kWrite_SkFILE_Flag) { |
20 return NULL; | 21 return NULL; |
21 } | 22 } |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
88 | 89 |
89 void sk_fflush(SkFILE* f) { | 90 void sk_fflush(SkFILE* f) { |
90 SkDEBUGFAIL("Not supported yet"); | 91 SkDEBUGFAIL("Not supported yet"); |
91 } | 92 } |
92 | 93 |
93 void sk_fclose(SkFILE* rec) { | 94 void sk_fclose(SkFILE* rec) { |
94 SkASSERT(rec); | 95 SkASSERT(rec); |
95 [rec->fData release]; | 96 [rec->fData release]; |
96 delete rec; | 97 delete rec; |
97 } | 98 } |
98 | 99 */ |
OLD | NEW |