OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
4 * | 3 * |
5 * 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 |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 | 7 |
9 | 8 |
10 #include "SkBase64.h" | 9 #include "SkBase64.h" |
11 | 10 |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 | 154 |
156 SkBase64::Error SkBase64::decode(const char* src, size_t len) { | 155 SkBase64::Error SkBase64::decode(const char* src, size_t len) { |
157 Error err = decode(src, len, false); | 156 Error err = decode(src, len, false); |
158 SkASSERT(err == kNoError); | 157 SkASSERT(err == kNoError); |
159 if (err != kNoError) | 158 if (err != kNoError) |
160 return err; | 159 return err; |
161 fData = new char[fLength]; // should use sk_malloc/sk_free | 160 fData = new char[fLength]; // should use sk_malloc/sk_free |
162 decode(src, len, true); | 161 decode(src, len, true); |
163 return kNoError; | 162 return kNoError; |
164 } | 163 } |
OLD | NEW |