Skip to content

Array.LongLength property missing #17178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AArnott opened this issue May 1, 2016 · 2 comments
Closed

Array.LongLength property missing #17178

AArnott opened this issue May 1, 2016 · 2 comments
Milestone

Comments

@AArnott
Copy link
Contributor

AArnott commented May 1, 2016

I'm porting libgit2sharp to portable and the lack of LongLength on arrays forces me to resort to Length, which will break the library in writing objects larger than 2GB in size. The wisdom of 2GB objects in git aside, this seems like a sad limitation if CoreCLR itself supports 64-bit processes.

@ellismg
Copy link
Contributor

ellismg commented May 2, 2016

FWIW, Presently, the runtime does not allow an array to contain more than int.MaxValue elements (and the actual limit is slightly smaller.)

So even if this was exposed, you could write the code you'd want, but you wouldn't get the behavior you desire.

@AArnott
Copy link
Contributor Author

AArnott commented May 2, 2016

Oh, interesting. Then in that case, removing a pointless API sounds good.

@AArnott AArnott closed this as completed May 2, 2016
nickbabcock referenced this issue in nickbabcock/Farmhash.Sharp Jun 20, 2016
@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the 1.0.0-rtm milestone Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants