Mirro1871
(Mirro1871)
August 26, 2024, 6:27am
1
currently,FString cannot store strings that are too long.
3dRaven
(3dRaven)
August 26, 2024, 7:08am
2
Ofcourse it does, but i doubt you’ll reach it anytime soon with a normal game. “Len” returns the length as Int32(which is a little flaw in my opinion since length/size can not be smaller than 0). Deriving from it, that it supports the full 31 Bits of the positive space of Int32, you can create a string with up to 2.147.483.647 characters. IIRC a TChar is 1 Byte, this means a FString of roughly 2GB(!). Nothing beyond this is possbile, because otherwhise Int32 will flip to negative value.
What are you trying to store that is breaking the 2.147.483.647 character limit? Perhaps you are only storing to the first line break? Check where you data cuts off abruptly.
system
(system)
Closed
September 25, 2024, 2:53pm
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.