mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Move base64Encode into react/utils (#55873)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55873 Move `base64Encode` implementation (originally vendored in D58323859) into `ReactCommon/react/utils/` for reuse in other C++ packages. Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D95041544 fbshipit-source-id: d71376d03079a8cc4d0a6c3652c40d73374858ea
This commit is contained in:
1 parent
d6f2b34a95
commit
422770d5a4
2 files changed
+3
-3
No files matched your search
@@ -8,10 +8,10 @@
|
||||
#include "NetworkIOAgent.h"
|
||||
#include "InspectorFlags.h"
|
||||
|
||||
#include "Base64.h"
|
||||
#include "Utf8.h"
|
||||
|
||||
#include <jsinspector-modern/network/NetworkHandler.h>
|
||||
#include <react/utils/Base64.h>
|
||||
|
||||
#include <sstream>
|
||||
#include <tuple>
|
||||
|
||||
+2
-2
@@ -10,7 +10,7 @@
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
|
||||
namespace facebook::react::jsinspector_modern {
|
||||
namespace facebook::react {
|
||||
|
||||
namespace {
|
||||
// Vendored from Folly
|
||||
@@ -96,4 +96,4 @@ inline std::string base64Encode(const std::string_view s)
|
||||
return res;
|
||||
}
|
||||
|
||||
} // namespace facebook::react::jsinspector_modern
|
||||
} // namespace facebook::react
|
||||
Reference in new issue
Block a user