Commit Graph

15 Commits

Author SHA1 Message Date
Adam Rocska 1974c1744d Removed maxmind "branding" from repository wherever it was legally possible.
Signed-off-by: Adam Rocska <adam.rocska@adams.solutions>
2020-05-28 15:49:56 +02:00
Adam Rocska c7c3ab44db Ok, the repo is somewhat exploded at this point. BUT IT WORKS! Now I only gotta provide proper tests instead of the trashy ones, put together the reader & serializer, and represent this maxmind php fantasy crap with some nice Structs. And then the saga is over for now.
Signed-off-by: Adam Rocska <adam.rocska@adams.solutions>
2020-05-28 14:23:26 +02:00
Adam Rocska 13fdc79bf9 Attempting a different way of typeconversion in hope, that we can handle the php scripter style stupidifaction of 11bit integers, and God knows what other retarded concepts can arise.
Signed-off-by: Adam Rocska <adam.rocska@adams.solutions>
2020-05-19 14:51:32 +02:00
Adam Rocska f6ab2f4cac Attempting another different approach.
Signed-off-by: Adam Rocska <adam.rocska@adams.solutions>
2020-05-18 00:26:10 +02:00
Adam Rocska f02cb01293 Gotta redesign the whole decoder layer. Managed to sketch a way to tackle with these php scripter fantasies in the MaxMind DB spec on the whiteboard.
Signed-off-by: Adam Rocska <adam.rocska@adams.solutions>
2020-05-16 15:09:22 +02:00
Adam Rocska 0ba9fa285c Foundations for the DataSection module.
Signed-off-by: Adam Rocska <adam.rocska@adams.solutions>
2020-05-14 15:35:23 +02:00
Adam Rocska ee69802b9d Lookup direction implemented.
Signed-off-by: Adam Rocska <adam.rocska@adams.solutions>
2020-05-12 17:48:39 +02:00
Adam Rocska 3b80256856 MetadataStruct moved to its own module.
Signed-off-by: Adam Rocska <adam.rocska@adams.solutions>
2020-05-11 13:41:38 +02:00
Adam Rocska bcd1c7e023 Perparation work for the metadata module.
Signed-off-by: Adam Rocska <adam.rocska@adams.solutions>
2020-05-11 13:20:08 +02:00
Adam Rocska 07a8298fc4 Reorganizing the code a bit.
Signed-off-by: Adam Rocska <adam.rocska@adams.solutions>
2020-05-11 13:09:00 +02:00
Adam Rocska ede019e149 Refactor & Node for index.
Signed-off-by: Adam Rocska <adam.rocska@adams.solutions>
2020-05-10 20:06:45 +02:00
Adam Rocska c0dba1887b Committing half made not working code to ask for some help. The search algorithm gets stuck at index 20990 as if it was an overflow, while it can't be an overflow, since it's a typealias for Int, and also, it's not a square number. Weird. Bughunting. 2020-04-29 13:03:10 +02:00
Adam Rocska 4fc53d970c I figured out what the problem was. I was an idiot in many ways :
- the submodule had an invalid detatched head commit hash. Dunno why.
- the package swift file defined a wrong version number for libmaxminddb. Moral of the story : don't be an ass.
- some leftover garbage from automake made me believe I was done
- potato
2020-04-27 21:27:28 +02:00
Adam Rocska 731ac6da87 Trying to resolve this header file issue. 2020-04-27 17:30:45 +02:00
Adam Rocska 3b32769926 Initial Commit. 2020-04-27 15:25:09 +02:00