Maximum length of byte[]?

后端 未结 4 807
孤独总比滥情好
孤独总比滥情好 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:31

    I wouldn't do this in the first place. Why would you want to set all that memory aside for this in-memory database? Wouldn't you rather want either a data structure which size increments as you go along (e.g. List)? Or (if preferred) use an in-memory database like sqlite?

提交回复
热议问题