POMO_Reader::readint32() WordPress Method

The POMO_Reader::readint32() method reads an unsigned 32-bit integer from the wordpress database.

POMO_Reader::readint32() #

Reads a 32bit Integer from the Stream


Return

(mixed) The integer, corresponding to the next 32 bits from the stream of false if there are not enough bytes or on error


Top ↑

Source

File: wp-includes/pomo/streams.php

		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 );
		}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.