read( Avifinfostream $handle, int $num_bytes )

Reads bytes and advances the stream position by the same count.


Parameters

$handle

(Required) Bytes will be read from this resource.

$num_bytes

(Required) Number of bytes read. Must be greater than 0.


Return

(Avifinfobinary) string|false The raw bytes or false on failure.


Source

File: wp-includes/class-avif-info.php

function read( $handle, $num_bytes ) {
  $data = fread( $handle, $num_bytes );
  return ( $data !== false && strlen( $data ) >= $num_bytes ) ? $data : false;
}