POMO_Reader::readint32array() WordPress Method

The POMO_Reader::readint32array() method reads an array of 32-bit integers from a string. This is useful for reading data that has been stored in a 32-bit integer format.

POMO_Reader::readint32array( int $count ) #

Reads an array of 32-bit Integers from the Stream


Parameters

$count

(int)(Required)How many elements should be read


Top ↑

Return

(mixed) Array of integers or false if there isn't enough data or on error


Top ↑

Source

File: wp-includes/pomo/streams.php

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

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.