You are here

private function Decoder::decodeDouble in Smart IP 7.2

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

Class

Decoder

Namespace

MaxMind\Db\Reader

Code

private function decodeDouble($bits) {

  // XXX - Assumes IEEE 754 double on platform
  list(, $double) = unpack('d', $this
    ->maybeSwitchByteOrder($bits));
  return $double;
}