How large can be an array in 64-bit for Delphi? Can it be larger than 2GB?

How large can be an array in 64-bit for Delphi? Can it be larger than 2GB?
The size of an array is restricted to a signed 32-bit integer or in 64-bit environments it can be a signed 64-bit integer? For the declaration of Length function, it can not return a value larger than a signed 32-bit integer :(

I have not found a definitive answer.

Comments

  1. Seems you did not look into the code properly. Length (System.__DynArrayLength) returns NativeInt which happens to be Int64 on 64-bit.

    As for static arrays the same restrictions as for 32-bit apply.

    ReplyDelete

Post a Comment