getid3_matroska::EnsureBufferHasEnoughData() –
You appear to be a bot. Output may be restricted
Description
Usage
$bool = getid3_matroska::EnsureBufferHasEnoughData( $min_data );
Parameters
- $min_data
- ( int ) optional default: 1024 –
Returns
bool
Source
File name: wordpress/wp-includes/ID3/module.audio-video.matroska.php
Lines:
1 to 20 of 20
private function EnsureBufferHasEnoughData($min_data=1024) { if (($this->current_offset - $this->EBMLbuffer_offset) >= ($this->EBMLbuffer_length - $min_data)) { $read_bytes = max($min_data, $this->getid3->fread_buffer_size()); try { $this->fseek($this->current_offset); $this->EBMLbuffer_offset = $this->current_offset; $this->EBMLbuffer = $this->fread($read_bytes); $this->EBMLbuffer_length = strlen($this->EBMLbuffer); } catch (getid3_exception $e) { $this->warning('EBML parser: '.$e->getMessage()); return false; } if ($this->EBMLbuffer_length == 0 && $this->feof()) { return $this->error('EBML parser: ran out of file at offset '.$this->current_offset); } } return true; }