Maximum length of byte[]?

后端 未结 4 805
孤独总比滥情好
孤独总比滥情好 2020-12-09 09:04

I\'m trying to create an array of bytes whose length is UInt32.MaxValue. This array is essentially a small(ish) in-memory database:



        
4条回答
  •  误落风尘
    2020-12-09 09:33

    Maximum length of a byte array is: 2130702268. for example:

    var countryCodes = new byte[2130702268];
    

提交回复
热议问题