POMO_Reader::readint32()publicWP 1.0

Reads a 32bit Integer from the Stream

Метод класса: POMO_Reader{}

Хуков нет.

Возвращает

Разное. The integer, corresponding to the next 32 bits from the stream of false if there are not enough bytes or on error

Использование

$POMO_Reader = new POMO_Reader();
$POMO_Reader->readint32();

Код POMO_Reader::readint32() WP 6.5.2

public function readint32() {
	$bytes = $this->read( 4 );
	if ( 4 !== $this->strlen( $bytes ) ) {
		return false;
	}
	$endian_letter = ( 'big' === $this->endian ) ? 'N' : 'V';
	$int           = unpack( $endian_letter, $bytes );
	return reset( $int );
}