POMO_Reader::readint32array
Reads an array of 32-bit Integers from the Stream
Method of the class: POMO_Reader{}
No Hooks.
Returns
Mixed. Array of integers or false if there isn't enough data or on error
Usage
$POMO_Reader = new POMO_Reader(); $POMO_Reader->readint32array( $count );
- $count(int) (required)
- How many elements should be read.
POMO_Reader::readint32array() POMO Reader::readint32array code WP 6.9
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 );
}