PKHeX/PKHeX.Core/Saves
Kurt 47071b41f3
Refactoring: Span-based value writes and method signatures (#3361)
Existing `get`/`set` logic is flawed in that it doesn't work on Big Endian operating systems, and it allocates heap objects when it doesn't need to.

`System.Buffers.Binary.BinaryPrimitives` in the `System.Memory` NuGet package provides both Little Endian and Big Endian methods to read and write data; all the `get`/`set` operations have been reworked to use this new API. This removes the need for PKHeX's manual `BigEndian` class, as all functions are already covered by the BinaryPrimitives API.

The `StringConverter` has now been rewritten to accept a Span to read from & write to, no longer requiring a temporary StringBuilder.

Other Fixes included:
- The Super Training UI for Gen6 has been reworked according to the latest block structure additions.
- Cloning a Stadium2 Save File now works correctly (opening from the Folder browser list).
- Checksum & Sanity properties removed from parent PKM class, and is now implemented via interface.
2022-01-02 21:35:59 -08:00
..
Access Remove unnecessary warning suppression 2021-12-27 12:09:15 -08:00
Blocks Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
Encryption Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
Storage Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
Substructures Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
Util Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV1.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV1Stadium.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV1StadiumJ.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV2.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV2Stadium.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV3.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV3Colosseum.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV3E.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV3FRLG.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV3GCMemoryCard.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV3RS.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV3RSBox.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV3XD.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV4.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV4BR.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV4DP.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV4HGSS.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV4Pt.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV4Sinnoh.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV5.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV5B2W2.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV5BW.cs Add Swarm data get/set for gen3-5 2021-08-20 19:52:31 -07:00
SAV6.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV6AO.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV6AODemo.cs Trailing commas 2021-08-20 13:49:20 -07:00
SAV6XY.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV7.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV7b.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV7SM.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV7USUM.cs Add battle agency slots to main window misc viewables 2021-07-26 23:57:05 -07:00
SAV8.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV8BS.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV8SWSH.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV_BEEF.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SAV_STADIUM.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SaveFile.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
SaveFileMetadata.cs More records/sealing 2021-12-05 23:54:59 -08:00
SaveFileState.cs More records/sealing 2021-12-05 23:54:59 -08:00