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" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 byteCount = remaining; | 75 byteCount = remaining; |
76 } | 76 } |
77 memcpy(buffer, (char*)[rec->fData bytes] + rec->fOffset, byteCount); | 77 memcpy(buffer, (char*)[rec->fData bytes] + rec->fOffset, byteCount); |
78 rec->fOffset += byteCount; | 78 rec->fOffset += byteCount; |
79 SkASSERT(rec->fOffset <= rec->fLength); | 79 SkASSERT(rec->fOffset <= rec->fLength); |
80 return byteCount; | 80 return byteCount; |
81 } | 81 } |
82 } | 82 } |
83 | 83 |
84 size_t sk_fwrite(const void* buffer, size_t byteCount, SkFILE* f) { | 84 size_t sk_fwrite(const void* buffer, size_t byteCount, SkFILE* f) { |
85 SkASSERT(!"Not supported yet"); | 85 SkDEBUGFAIL("Not supported yet"); |
86 return 0; | 86 return 0; |
87 } | 87 } |
88 | 88 |
89 void sk_fflush(SkFILE* f) { | 89 void sk_fflush(SkFILE* f) { |
90 SkASSERT(!"Not supported yet"); | 90 SkDEBUGFAIL("Not supported yet"); |
91 } | 91 } |
92 | 92 |
93 void sk_fclose(SkFILE* rec) { | 93 void sk_fclose(SkFILE* rec) { |
94 SkASSERT(rec); | 94 SkASSERT(rec); |
95 [rec->fData release]; | 95 [rec->fData release]; |
96 delete rec; | 96 delete rec; |
97 } | 97 } |
98 | 98 |
OLD | NEW |