You are here

private function Decoder::decodeArray in Smart IP 6.2

Same name and namespace in other branches
  1. 7.2 includes/vendor/maxmind-db/reader/src/MaxMind/Db/Reader/Decoder.php \MaxMind\Db\Reader\Decoder::decodeArray()
1 call to Decoder::decodeArray()
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 149

Class

Decoder

Namespace

MaxMind\Db\Reader

Code

private function decodeArray($size, $offset) {
  $array = array();
  for ($i = 0; $i < $size; $i++) {
    list($value, $offset) = $this
      ->decode($offset);
    array_push($array, $value);
  }
  return array(
    $array,
    $offset,
  );
}