PKHeX/PKHeX.Core/Legality/Structures
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
..
CheckMoveResult.cs Move enum to separate file 2021-10-09 16:25:36 -07:00
CheckResult.cs Remove unnecessary setter 2021-04-18 11:00:40 -07:00
EggMoves.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
IFixedAbilityNumber.cs Add IFixedAbilityNumber, hide vivillon region flags 2021-09-06 18:11:32 -07:00
IFixedBall.cs Encounter visualization: Show ball and differentiate visually 2021-08-24 14:03:20 -07:00
ILocation.cs Show preview for encounter database slots on hover 2021-02-06 22:33:13 -08:00
IMoveset.cs Rewrite settings handling; enhance some user experiences (#3193) 2021-04-11 18:09:54 -07:00
IRelearn.cs Move files 2020-01-25 17:22:20 -08:00
ITrainerInfo.cs Rename SetTradeMemoryHT, add SetTradeMemoryHT8 2021-08-29 13:15:45 -07:00
IVersion.cs Minor tweaks 2021-04-20 01:02:32 -07:00
LegalInfo.cs Remove unnecessary property 2021-10-08 23:30:03 -07:00
MoveSource.cs Move enum to separate file 2021-10-09 16:25:36 -07:00
Shiny.cs Trailing commas 2021-08-20 13:49:20 -07:00
SimpleTrainerInfo.cs Simplify Country/Region/ConsoleRegion to byte from int 2021-08-02 19:43:57 -07:00