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

In this article

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

User Contributed Notes

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