| 292 | } |
| 293 | |
| 294 | char* Base64Encode(char* outstr, const unsigned char* instr, size_t len) { |
| 295 | static const TImpl IMPL = GetImpl(); |
| 296 | if (Y_LIKELY(len < 8)) { |
| 297 | return Base64EncodePlain(outstr, instr, len); |
| 298 | } |
| 299 | |
| 300 | size_t outLen; |
| 301 | IMPL.Encode((char*)instr, len, outstr, &outLen); |
| 302 | |
| 303 | *(outstr + outLen) = '\0'; |
| 304 | return outstr + outLen; |
| 305 | } |
nothing calls this directly
no test coverage detected