I'm using PKHeX.Core inside of a (closed) community PokéBank-like project, I didn't figure out yet what every little line of code does inside PKHeX (I must admit that it is a pretty big project), yet the bank seemed to work enough to "release it", and is holding right now a few thousands of mons, all supposed to be 100% legit. (Some of them don't even have backups even if I told everyone to do so)
But, I just figured out that my pokemon file size for .pk6 files was 260, when using the save pokemon button inside PKHeX creates a file which size is 232.
Since the beginning i was creating the files and writing the content of (byte[]) PKHeX.Core.PKM.Data inside those, while PKHeX seems to prefer writing the EncryptedBoxData or DecryptedBoxData . Is there any chance, by doing so, that I modified any of the data of those pokemons, or might have caused some issues later on that will occur during the re import of those pokemon files inside save files ? From my tests and thoughts, it seems I didn't, but I prefer to make sure and ask professionals , because if I did, I must prepare myself to get slain / run away to Mexico.
Please Halp. (Thanks for reading)