POMO_Reader::readint32array( int $count ): mixed

In this article

Reads an array of 32-bit Integers from the Stream

Parameters

$countintrequired
How many elements should be read

Return

mixed Array of integers or false if there isn’t enough data or on error

Source

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

User Contributed Notes

You must log in before being able to contribute a note or feedback.