| OLD | NEW |
| 1 | 1 |
| 2 //********************************************************************* | 2 //********************************************************************* |
| 3 //* C_Base64 - a simple base64 encoder and decoder. | 3 //* C_Base64 - a simple base64 encoder and decoder. |
| 4 //* | 4 //* |
| 5 //* Copyright (c) 1999, Bob Withers - bwit@pobox.com | 5 //* Copyright (c) 1999, Bob Withers - bwit@pobox.com |
| 6 //* | 6 //* |
| 7 //* This code may be freely used for any purpose, either personal | 7 //* This code may be freely used for any purpose, either personal |
| 8 //* or commercial, provided the authors copyright notice remains | 8 //* or commercial, provided the authors copyright notice remains |
| 9 //* intact. | 9 //* intact. |
| 10 //********************************************************************* | 10 //********************************************************************* |
| 11 | 11 |
| 12 #ifndef WEBRTC_BASE_BASE64_H__ | 12 #ifndef WEBRTC_RTC_BASE_BASE64_H_ |
| 13 #define WEBRTC_BASE_BASE64_H__ | 13 #define WEBRTC_RTC_BASE_BASE64_H_ |
| 14 | 14 |
| 15 #include <string> | 15 #include <string> |
| 16 #include <vector> | 16 #include <vector> |
| 17 | 17 |
| 18 namespace rtc { | 18 namespace rtc { |
| 19 | 19 |
| 20 class Base64 { | 20 class Base64 { |
| 21 public: | 21 public: |
| 22 enum DecodeOption { | 22 enum DecodeOption { |
| 23 DO_PARSE_STRICT = 1, // Parse only base64 characters | 23 DO_PARSE_STRICT = 1, // Parse only base64 characters |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 template <typename T> | 113 template <typename T> |
| 114 static bool DecodeFromArrayTemplate(const char* data, | 114 static bool DecodeFromArrayTemplate(const char* data, |
| 115 size_t len, | 115 size_t len, |
| 116 DecodeFlags flags, | 116 DecodeFlags flags, |
| 117 T* result, | 117 T* result, |
| 118 size_t* data_used); | 118 size_t* data_used); |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 } // namespace rtc | 121 } // namespace rtc |
| 122 | 122 |
| 123 #endif // WEBRTC_BASE_BASE64_H__ | 123 #endif // WEBRTC_RTC_BASE_BASE64_H_ |
| OLD | NEW |