POMO_Reader::readint32array()

最后更新于:2021-11-25 22:29:02

POMO_Reader::readint32array( int$count)

Reads an array of 32-bit Integers from the Stream

参数

$count

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

响应

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

源文件

文件: gc-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 );
		}