private function Decoder::isPlatformLittleEndian 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::isPlatformLittleEndian()
1 call to Decoder::isPlatformLittleEndian()
- Decoder::__construct 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 303
Class
Namespace
MaxMind\Db\ReaderCode
private function isPlatformLittleEndian() {
$testint = 0xff;
$packed = pack('S', $testint);
return $testint === current(unpack('v', $packed));
}