Is FString::ToBlob Broken?

#Alternative Using FBufferArchive

FString YourMessage = "Weee!";

FBufferArchive BinaryArrayArchive;
BinaryArrayArchive << YourMessage;

now you can access the uint8* ptr using

BinaryArrayArchive.GetTypedData() //this is uint8*

and use the rest of your code from the point of having the uint8*

:slight_smile:

FBufferArchive

It is both a TArray and a FArchiveWriter

Enjoy!

Rama

1 Like