Lesson 35 - Get Compute Auth Token Working
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
#include "Serializer.h"
|
||||
|
||||
#if WITH_GAMELIFT_CLIENT
|
||||
|
||||
namespace AWSSerializer
|
||||
{
|
||||
std::string FSToStdS(const FString& String)
|
||||
{
|
||||
if (String.IsEmpty())
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
||||
auto* Chars = StringCast<ANSICHAR>(*String).Get();
|
||||
return std::string(Chars, strlen(Chars));
|
||||
}
|
||||
|
||||
FString ASToFS(const char* String)
|
||||
{
|
||||
return FString(StringCast<TCHAR>(String).Get());
|
||||
}
|
||||
} // namespace AWSSerializer
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user