Replies: 2 comments 5 replies
-
See: #12221 The size limit of string actually comes from GC.
The ASCII string will always consume twice memory of byte array. Since there will always be a hard limit of object size (even if Int64.MaxValue), arrays larger than half of the limit can't be converted to hex string ever.
There's no unlimited in computer space. There can only be a very large limit.
I don't know this is possible with in a single process. To summarize, the most important reasons that 64bit array isn't easy:
|
Beta Was this translation helpful? Give feedback.
-
Everyone of you are right, I really want byte array to have unlimited length not physically unlimited but, I'm gonna figure out a way one day |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
There's gotta be a way for array to be able to store an unlimited amount of data with one final exception that say it can not, so https://source.dot.net/#System.Private.CoreLib/src/libraries/System.Private.CoreLib/src/System/Convert.cs,e54b8e5a7f9d845a doesn't have to throw an exception here for example
If we make byte[] to have unlimited amount of bytes it means we can use more than 2^32 bytes in 32bit system, it's possible we just gotta implement array differently
what's other people's opinion here
Beta Was this translation helpful? Give feedback.
All reactions