diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-02-03 18:38:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-03 18:38:20 +0100 |
commit | 5f8f049ddb1f322d48b35eec27d594d8eb97acd6 (patch) | |
tree | 02a768704564ceee7e8ea41c3dfe95f782559c88 | |
parent | 43ab0edbd2e7b99ba9d244c5790e3f47fd7d712f (diff) | |
parent | c5f0db45df6002258ee0b3f0158d1069f828455e (diff) |
Merge pull request #45674 from Calinou/doc-file-endian-swap
Improve the `File.endian_swap` documentation
-rw-r--r-- | doc/classes/File.xml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/classes/File.xml b/doc/classes/File.xml index 2f7ac551cf..ff03f44789 100644 --- a/doc/classes/File.xml +++ b/doc/classes/File.xml @@ -481,8 +481,9 @@ </methods> <members> <member name="endian_swap" type="bool" setter="set_endian_swap" getter="get_endian_swap" default="false"> - If [code]true[/code], the file's endianness is swapped. Use this if you're dealing with files written on big-endian machines. - [b]Note:[/b] This is about the file format, not CPU type. This is always reset to [code]false[/code] whenever you open the file. + If [code]true[/code], the file is read with big-endian [url=https://en.wikipedia.org/wiki/Endianness]endianness[/url]. If [code]false[/code], the file is read with little-endian endianness. If in doubt, leave this to [code]false[/code] as most files are written with little-endian endianness. + [b]Note:[/b] [member endian_swap] is only about the file format, not the CPU type. The CPU endianness doesn't affect the default endianness for files written. + [b]Note:[/b] This is always reset to [code]false[/code] whenever you open the file. Therefore, you must set [member endian_swap] [i]after[/i] opening the file, not before. </member> </members> <constants> |