PKHeX/PKHeX.Core/Legality/Encounters/EncounterSlot
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
..
GO Hardcode kiribati date shift offset 2021-10-01 08:35:11 -07:00
EncounterSlot.cs Refactoring: Span-based value writes and method signatures (#3361) 2022-01-02 21:35:59 -08:00
EncounterSlot1.cs Trailing commas 2021-08-20 13:49:20 -07:00
EncounterSlot2.cs Misc form handling update (EncounterSlots) 2021-07-31 22:41:52 -07:00
EncounterSlot3.cs Make EncounterArea parent reference protected, expose properties 2021-07-30 14:05:23 -07:00
EncounterSlot3PokeSpot.cs Rework EncounterCriteria to be ability indexed rather than direct ability (#3179) 2021-03-23 17:05:15 -07:00
EncounterSlot3Swarm.cs Mark EncounterSlot/Static types as immutable record types 2020-12-23 20:40:59 -08:00
EncounterSlot4.cs Bypass encounter slot check for radar slots 2021-12-12 13:16:27 -08:00
EncounterSlot5.cs Make EncounterArea parent reference protected, expose properties 2021-07-30 14:05:23 -07:00
EncounterSlot6AO.cs Add friendsafari to HA metadata permission 2021-12-26 23:05:25 -08:00
EncounterSlot6XY.cs Add friendsafari to HA metadata permission 2021-12-26 23:05:25 -08:00
EncounterSlot7.cs Update EncounterSlot7.cs 2021-08-02 08:57:03 -07:00
EncounterSlot7b.cs Generate slots/static per correlation if appropriate 2021-02-14 12:27:14 -08:00
EncounterSlot8.cs Rework match ranking to have multi levels of deferral 2021-08-15 09:28:47 -07:00
EncounterSlot8b.cs Add Lost Tower to zones where Radar can't be used 2021-12-09 11:02:12 -06:00
IGroundTypeTile.cs Change interface for method call to less restricted 2021-07-13 18:22:04 -07:00
IMagnetStatic.cs Xmldoc, minor tweaks 2020-11-27 11:51:02 -08:00
INumberedSlot.cs Xmldoc, minor tweaks 2020-11-27 11:51:02 -08:00