ResizeIntArray - Utility: Difference between revisions
Jump to navigation
Jump to search
no edit summary
(→Notes) |
No edit summary |
||
| Line 4: | Line 4: | ||
Resizes an already existing array of Int values to the specified length. (This function requires SKSE)<br> | Resizes an already existing array of Int values to the specified length. (This function requires SKSE)<br> | ||
'''Be careful when using this function.''' It is possible to create arrays longer than 128 elements, and size is treated as an unsigned integer. Negative numbers will produce extremely large values, which can cause major issues. | '''Be careful when using this function.''' It is possible to create arrays longer than 128 elements, and size is treated as an unsigned 32-bit integer. Do not exceed a length of 2^31. SKSE's DLL can handle a max length of 2^32 '''however, Papyrus cannot.''' Negative numbers will produce extremely large values, which can cause major issues. | ||
== Syntax == | == Syntax == | ||