private function Reader::startNode in Smart IP 6.2
Same name and namespace in other branches
- 7.2 includes/vendor/maxmind-db/reader/src/MaxMind/Db/Reader.php \MaxMind\Db\Reader::startNode()
1 call to Reader::startNode()
- Reader::findAddressInTree in includes/
vendor/ maxmind-db/ reader/ src/ MaxMind/ Db/ Reader.php
File
- includes/
vendor/ maxmind-db/ reader/ src/ MaxMind/ Db/ Reader.php, line 149
Class
- Reader
- Instances of this class provide a reader for the MaxMind DB format. IP addresses can be looked up using the <code>get</code> method.
Namespace
MaxMind\DbCode
private function startNode($length) {
// Check if we are looking up an IPv4 address in an IPv6 tree. If this
// is the case, we can skip over the first 96 nodes.
if ($this->metadata->ipVersion == 6 && $length == 32) {
return $this
->ipV4StartNode();
}
// The first node of the tree is always node 0, at the beginning of the
// value
return 0;
}