godot/modules/mono
Pedro J. Estébanez 817ffc01e1
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-16 17:52:31 +02:00
..
build_scripts Mono: Don't use -rdynamic when compiling for WASM 2020-12-13 21:46:38 +01:00
doc_classes doc: Sync classref with Mono build 2021-05-03 22:34:11 +02:00
editor Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
glue Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
icons [Mono]: the C# script icon is now visible in the editor. 2020-01-03 22:49:22 +01:00
mono_gd Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
utils Make all file access 64-bit (uint64_t) 2021-05-16 17:52:31 +02:00
.gitignore Make git no longer ignore solution files inside the mono module 2019-08-12 15:59:06 +02:00
__init__.py Re-write mono module editor code in C# 2019-07-05 09:38:23 +02:00
class_db_api_json.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
class_db_api_json.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
config.py Mono: Add mono_bcl SCons option for a custom BCL location 2020-12-09 11:22:05 +01:00
csharp_script.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
csharp_script.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
godotsharp_defs.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
godotsharp_dirs.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
godotsharp_dirs.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
mono_gc_handle.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
mono_gc_handle.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
register_types.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
register_types.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
signal_awaiter_utils.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
signal_awaiter_utils.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00