private function Decoder::decodeMap in Smart IP 6.2
Same name and namespace in other branches
- 7.2 includes/vendor/maxmind-db/reader/src/MaxMind/Db/Reader/Decoder.php \MaxMind\Db\Reader\Decoder::decodeMap()
1 call to Decoder::decodeMap()
- Decoder::decodeByType in includes/
vendor/ maxmind-db/ reader/ src/ MaxMind/ Db/ Reader/ Decoder.php
File
- includes/
vendor/ maxmind-db/ reader/ src/ MaxMind/ Db/ Reader/ Decoder.php, line 187
Class
Namespace
MaxMind\Db\ReaderCode
private function decodeMap($size, $offset) {
$map = array();
for ($i = 0; $i < $size; $i++) {
list($key, $offset) = $this
->decode($offset);
list($value, $offset) = $this
->decode($offset);
$map[$key] = $value;
}
return array(
$map,
$offset,
);
}