godot/modules/mono
Pedro J. Estébanez 469fa47e06
Make all file access 64-bit (uint64_t)
This changes the types of a big number of variables.

General rules:
- Using `uint64_t` in general. We also considered `int64_t` but eventually
  settled on keeping it unsigned, which is also closer to what one would expect
  with `size_t`/`off_t`.
- We only keep `int64_t` for `seek_end` (takes a negative offset from the end)
  and for the `Variant` bindings, since `Variant::INT` is `int64_t`. This means
  we only need to guard against passing negative values in `core_bind.cpp`.
- Using `uint32_t` integers for concepts not needing such a huge range, like
  pages, blocks, etc.

In addition:
- Improve usage of integer types in some related places; namely, `DirAccess`,
  core binds.

Note:
- On Windows, `_ftelli64` reports invalid values when using 32-bit MinGW with
  version < 8.0. This was an upstream bug fixed in 8.0. It breaks support for
  big files on 32-bit Windows builds made with that toolchain. We might add a
  workaround.

Fixes #44363.
Fixes godotengine/godot-proposals#400.

Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
2021-05-17 15:06:19 +02:00
..
build_scripts Add C# source generator for a new ScriptPath attribute 2021-03-06 21:50:32 +01:00
doc_classes Add link titles for all links in the class reference 2020-08-31 14:22:07 +02:00
editor Replace remaining uses of `NULL` with `nullptr` 2021-04-29 11:53:27 +02:00
glue Merge pull request #45144 from dalexeev/color-consts 2021-05-07 12:22:49 +02:00
icons Optimize SVG using `svgcleaner --multipass` 2020-10-25 10:02:37 +01:00
mono_gd Replace remaining uses of `NULL` with `nullptr` 2021-04-29 11:53:27 +02:00
utils Make all file access 64-bit (uint64_t) 2021-05-17 15:06:19 +02:00
.gitignore Make git no longer ignore solution files inside the mono module 2019-08-12 15:59:06 +02:00
Directory.Build.props Add C# source generator for a new ScriptPath attribute 2021-03-06 21:50:32 +01:00
SCsub C#: Make editor create NuGet fallback folder for Godot packages 2020-10-23 10:54:49 +02:00
SdkPackageVersions.props C#: Fix ScriptPathAttribute generator with none or nested namespaces 2021-03-13 01:04:59 +01:00
__init__.py Re-write mono module editor code in C# 2019-07-05 09:38:23 +02:00
class_db_api_json.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
class_db_api_json.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
config.py Mono: Add mono_bcl SCons option for a custom BCL location 2020-12-06 01:15:20 +01:00
csharp_script.cpp Highlight control flow keywords with a different color 2021-05-05 22:38:12 +02:00
csharp_script.h Highlight control flow keywords with a different color 2021-05-05 22:38:12 +02:00
godotsharp_defs.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
godotsharp_dirs.cpp Mono/macOS: Separate data dir into frameworks and resources for codesigning 2021-03-03 13:54:34 +01:00
godotsharp_dirs.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
managed_callable.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
managed_callable.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
mono_gc_handle.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
mono_gc_handle.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
register_types.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
register_types.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
signal_awaiter_utils.cpp Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
signal_awaiter_utils.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00