You are here

private function Decoder::maybeSwitchByteOrder 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::maybeSwitchByteOrder()
3 calls to Decoder::maybeSwitchByteOrder()
Decoder::decodeDouble in includes/vendor/maxmind-db/reader/src/MaxMind/Db/Reader/Decoder.php
Decoder::decodeFloat in includes/vendor/maxmind-db/reader/src/MaxMind/Db/Reader/Decoder.php
Decoder::decodeInt32 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 298

Class

Decoder

Namespace

MaxMind\Db\Reader

Code

private function maybeSwitchByteOrder($bytes) {
  return $this->switchByteOrder ? strrev($bytes) : $bytes;
}