public function readByteOrder() : void
    {
        $byteOrder = $this->readUnsignedChar();

        if ($byteOrder !== WKBTools::BIG_ENDIAN && $byteOrder !== WKBTools::LITTLE_ENDIAN) {
            throw GeometryIOException::invalidWKB('unknown byte order: ' . $byteOrder);
        }

        $this->invert = ($byteOrder !== $this->machineByteOrder);
    }
public function readByteOrder() : void
    {
        $byteOrder = $this->readUnsignedChar();

        if ($byteOrder !== WKBTools::BIG_ENDIAN && $byteOrder !== WKBTools::LITTLE_ENDIAN) {
            throw GeometryIOException::invalidWKB('unknown byte order: ' . $byteOrder);
        }

        $this->invert = ($byteOrder !== $this->machineByteOrder);
    }
public function readByteOrder ( ) : void { $ byteOrder = $ this -> readUnsignedChar ( ) ; if ( $ byteOrder !== WKBTools :: BIG_ENDIAN && $ byteOrder !== WKBTools :: LITTLE_ENDIAN ) { throw GeometryIOException :: invalidWKB ( 'unknown byte order: ' . $ byteOrder ) ; } $ this -> invert = ( $ byteOrder !== $ this -> machineByteOrder ) ; }
Reads the machine byte order from the buffer and stores the result to act accordingly.

@return void

@throws GeometryIOException
Reads the machine byte order from the buffer and stores the result to act accordingly .