POMO_Reader::readint32array

Advertisement

Summery Summery

Reads an array of 32-bit Integers from the Stream

Syntax Syntax

POMO_Reader::readint32array( integer $count )

Parameters Parameters

$count

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

Return Return

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

Source Source

File: wp-includes/pomo/streams.php

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

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.