PKHeX/PKHeX.Core/Legality/Verifiers
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
..
Ability Explicitly implement IFixedAbilityNumber on all templates 2021-12-09 00:46:59 -08:00
Ball Update gen4 Shedinja handling 2021-12-26 20:13:36 -08:00
Egg Update minimum Egg hatch cycle legality 2021-12-07 20:38:00 -05:00
Misc Add bdsp approximations for min sheen calcs 2021-12-25 18:51:02 -08:00
Ribbons Update RibbonVerifier.cs 2021-11-26 19:37:29 -08:00
ConsoleRegionVerifier.cs this is not that 2020-12-21 17:12:39 -08:00
ContestStatVerifier.cs Add bdsp approximations for min sheen calcs 2021-12-25 18:51:02 -08:00
CXDVerifier.cs Trailing commas 2021-08-20 13:49:20 -07:00
EffortValueVerifier.cs Fracture the encounter matching checks to allow progressive validation (#3137) 2021-01-29 17:55:27 -08:00
FormVerifier.cs Minor fixes 2021-09-06 18:04:14 -07:00
GenderVerifier.cs Trailing commas 2021-08-20 13:49:20 -07:00
GroundTileVerifier.cs Revise EncounterArea and EncounterType for clarity (#3228) 2021-06-29 20:58:06 -07:00
HistoryVerifier.cs Handle traded BDSP eggs & flag HatchCounter=0 2021-11-21 19:29:07 -08:00
HyperTrainingVerifier.cs this is not that 2020-12-21 17:12:39 -08:00
IndividualValueVerifier.cs Make EncounterArea parent reference protected, expose properties 2021-07-30 14:05:23 -07:00
ItemVerifier.cs Trailing commas 2021-08-20 13:49:20 -07:00
LanguageVerifier.cs Use Generation property when available 2021-08-06 15:34:28 -07:00
LevelVerifier.cs Rewrite gen1 trade evo check 2021-10-07 23:56:01 -07:00
MarkVerifier.cs Update 21.11.19 - Brilliant Diamond & Shining Pearl (#3289) 2021-11-19 18:23:49 -08:00
MedalVerifier.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
MemoryVerifier.cs Update 21.11.19 - Brilliant Diamond & Shining Pearl (#3289) 2021-11-19 18:23:49 -08:00
MiscVerifier.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
NHarmoniaVerifier.cs Minor clean 2021-01-10 18:15:33 -08:00
NicknameVerifier.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
ParseSettings.cs Revise zero hw checks 2021-11-24 23:03:30 -08:00
PIDVerifier.cs Add properties for cleaner interaction 2021-09-07 15:31:54 -07:00
TrainerIDVerifier.cs Split Trainer verifier into TrainerName and TrainerID 2021-11-25 19:15:42 -08:00
TrainerNameVerifier.cs Add contest stat sheen checking 2021-12-07 00:54:39 -08:00
TransferVerifier.cs Update 21.11.19 - Brilliant Diamond & Shining Pearl (#3289) 2021-11-19 18:23:49 -08:00
Verifier.cs Target type'd new 2020-12-21 17:17:56 -08:00