MCPcopy Create free account
hub / github.com/Jigsaw-Code/Intra / CountryMap

Class CountryMap

Android/app/src/main/java/app/intra/ui/CountryMap.java:34–98  ·  view source on GitHub ↗

Map IP addresses to country codes, using a fixed-width sorted database. Lookups are performed using a binary search. The database requires about 5 MB of RAM, 2 MB compressed in the APK. A carefully designed tree-based representation could probably save a factor of 4. Note that this class is not use

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected