W3cubDocs

/WordPress

read( Avifinfostream $handle, int $num_bytes ): Avifinfobinary

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

Parameters

$handleAvifinfostreamrequired
Bytes will be read from this resource.
$num_bytesintrequired
Number of bytes read. Must be greater than 0.

Return

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

Source

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

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/avifinfo-read