How do I cast fstring or float to binary array?

I’m trying to cast fstring, float to binary array for socket communication. (Using FSocket)
But It’s not easy one for me… :frowning:

Any Idea? :slight_smile:

Hi!
You can do something like this:

FBinaryArray FStringToBytes(FString InStr)
{
	FBinaryArray Result;
	for (int32 index = 0; index < InStr.Len(); index++)
		Result.Add(InStr[index]);
	return Result;
}