Skip to content

Commit 9b6eb40

Browse files
Devmate Botfacebook-github-bot
authored andcommitted
xplat/js/react-native-github/packages/react-native/ReactCommon/jsinspector-modern/Base64.h
Reviewed By: javache Differential Revision: D82005121
1 parent a7cd3cc commit 9b6eb40

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • packages/react-native/ReactCommon/jsinspector-modern

packages/react-native/ReactCommon/jsinspector-modern/Base64.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ namespace facebook::react::jsinspector_modern {
1515
namespace {
1616
// Vendored from Folly
1717
// https://github.com/facebook/folly/blob/v2024.07.08.00/folly/detail/base64_detail/Base64Scalar.h
18-
constexpr char kBase64Charset[] =
18+
constexpr std::string_view kBase64Charset =
1919
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
2020

21-
constexpr char kBase64URLCharset[] =
21+
constexpr std::string_view kBase64URLCharset =
2222
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
2323

2424
template <bool isURL>
2525
struct Base64ScalarImpl {
2626
static constexpr const char* kCharset =
27-
isURL ? kBase64URLCharset : kBase64Charset;
27+
isURL ? kBase64URLCharset.data() : kBase64Charset.data();
2828

2929
// 0, 1 or 2 bytes
3030
static constexpr char* encodeTail(const char* f, const char* l, char* o) {

0 commit comments

Comments
 (0)